URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [typename12.C] - Rev 165
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
// { dg-options "" }
// execution test
int i = 0;
template <class T>
struct S {
struct X {};
};
template <class T>
void f(T)
{
S<T>::X();
}
template <>
struct S<int> {
static void X() { i = 1; }
};
int main()
{
f(3);
if (i != 1)
return 1;
else
return 0;
}
Go to most recent revision | Compare with Previous | Blame | View Log