URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// { dg-do run }
|
// { dg-do run }
|
// Adapted from testcase by Oskar Enoksson
|
// Adapted from testcase by Oskar Enoksson
|
|
|
extern "C" void abort();
|
extern "C" void abort();
|
|
|
template
|
template
|
class A {
|
class A {
|
public:
|
public:
|
typedef T0 T;
|
typedef T0 T;
|
};
|
};
|
|
|
template
|
template
|
class B {
|
class B {
|
typedef A BC;
|
typedef A BC;
|
};
|
};
|
|
|
template
|
template
|
class C {
|
class C {
|
public:
|
public:
|
typedef A AC;
|
typedef A AC;
|
};
|
};
|
|
|
int main() {
|
int main() {
|
if (sizeof(C<3,7>::AC::T) != 7)
|
if (sizeof(C<3,7>::AC::T) != 7)
|
abort();
|
abort();
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.