☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-ctor8.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-ctor8.C
code
plain
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, "");