URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [partial1.C] - Rev 749
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
template<class T_type, int N>
class foo {
public:
enum bar { z = 0 };
};
template<int N>
class foo<double, N> {
public:
enum bar { z = 1 };
};
template<class T_type>
class foo<T_type, 2> {
public:
enum bar { z = 2 };
};
int main()
{
if ((foo<int,3>::z == 0) && (foo<double,3>::z == 1)
&& (foo<float,2>::z == 2))
return 0;
else
return 1;
}
Go to most recent revision | Compare with Previous | Blame | View Log