2 // { dg-do compile { target c++11 } }
6 constexpr foo(int a, int b, int c): a{a}, b{b}, c{c} {}
11 constexpr foo make_foo(int a) { return foo{a, a+1, a+2}; }
12 constexpr foo::foo(int a): foo{make_foo(a)} {}
15 constexpr const foo f{3};
16 static_assert(f.a == 3, "");
17 static_assert(f.b == 4, "");
18 static_assert(f.c == 5, "");