URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 308 |
Rev 338 |
/* Test if ObjC classes (and pointers thereto) can participate
|
/* Test if ObjC classes (and pointers thereto) can participate
|
in C++ overloading. Correct handling of cv-qualifiers is
|
in C++ overloading. Correct handling of cv-qualifiers is
|
key here. */
|
key here. */
|
/* Author: Ziemowit Laski . */
|
/* Author: Ziemowit Laski . */
|
|
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
|
|
@interface foo {
|
@interface foo {
|
int a, b;
|
int a, b;
|
}
|
}
|
@end
|
@end
|
|
|
struct bar {
|
struct bar {
|
int c, d;
|
int c, d;
|
};
|
};
|
|
|
template
|
template
|
struct allocator {
|
struct allocator {
|
typedef _Tp* pointer;
|
typedef _Tp* pointer;
|
typedef const _Tp* const_pointer;
|
typedef const _Tp* const_pointer;
|
typedef _Tp& reference;
|
typedef _Tp& reference;
|
typedef const _Tp& const_reference;
|
typedef const _Tp& const_reference;
|
|
|
pointer address(reference __x) const { return &__x; }
|
pointer address(reference __x) const { return &__x; }
|
const_pointer address(const_reference __x) const { return &__x; }
|
const_pointer address(const_reference __x) const { return &__x; }
|
};
|
};
|
|
|
allocator b;
|
allocator b;
|
allocator d;
|
allocator d;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.