| 1 |
// PR c++/51433 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
constexpr int f(); |
| 5 |
constexpr int g() { return f(); } |
| 6 |
extern const int n = g(); // dynamic initialization |
| 7 |
constexpr int f() { return 42; } |
| 8 |
extern const int m = g(); |
| 9 |
static_assert(m == 42, "m == 42"); |