Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-empty18.C

raw
1 // PR c++/110197
2 // { dg-do compile { target c++11 } }
3
4 struct A { constexpr A(int) { } };
5 struct B { A a; };
6 constexpr B f(int n) { return B{A{n}}; }
7 constexpr B b = f(1);