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/] [enum2.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
struct U {
static int STATIC;
};
template <int* x> class FOO {
public:
enum { n = 0 };
};
template <class A> class BAR {
public:
enum { n = FOO<&A::STATIC>::n };
};
int n = BAR<U>::n;
Go to most recent revision | Compare with Previous | Blame | View Log