URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [typename9.C] - Rev 154
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);
}