URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [typename9.C] - Rev 305
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
// { dg-options "-w" }
// Test to make sure that implicit typename doesn't break name binding rules.
typedef double A;
template<class T> class B {
typedef char A;
};
template<class T> struct X : B<T> {
A a;
};
int main()
{
X<char*> x;
return sizeof (x.a) != sizeof (double);
}
Go to most recent revision | Compare with Previous | Blame | View Log