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 }
|
// { dg-options "-w" }
|
// { dg-options "-w" }
|
// Test to make sure that implicit typename doesn't break name binding rules.
|
// Test to make sure that implicit typename doesn't break name binding rules.
|
|
|
typedef double A;
|
typedef double A;
|
template class B {
|
template class B {
|
typedef char A;
|
typedef char A;
|
};
|
};
|
template struct X : B {
|
template struct X : B {
|
A a;
|
A a;
|
};
|
};
|
|
|
int main()
|
int main()
|
{
|
{
|
X x;
|
X x;
|
return sizeof (x.a) != sizeof (double);
|
return sizeof (x.a) != sizeof (double);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.