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/] [enum2.C] - Rev 165
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