Debian Codegraph @

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

raw
1 // PR c++/46466
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-fno-elide-constructors" }
4
5 struct S { bool b; };
6 constexpr S f() { return S{true}; }
7 static_assert(f().b, "");