URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [constexpr-cache1.C] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/51433
// { dg-options -std=c++0x }
constexpr int f();
constexpr int g() { return f(); }
extern const int n = g(); // dynamic initialization
constexpr int f() { return 42; }
extern const int m = g();
static_assert(m == 42, "m == 42");
Go to most recent revision | Compare with Previous | Blame | View Log