URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [template/] [error6.C] - Rev 315
Go to most recent revision | Compare with Previous | Blame | View Log
template<int n>
struct tento {
enum {value = 10*tento<n-1>::value};
};
struct tento<0> { // { dg-error "" }
enum {value=1};
};
int main() {
if (tento<4>::value != 10000) return -1;
}
Go to most recent revision | Compare with Previous | Blame | View Log