Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-100111.C
blob: 446d21d03c5a2efd779e2fbe9dce20bfa5a5d020 [
file
] [
log
] [
blame
]
// PR c++/100111
// { dg-do compile { target c++11 } }
// { dg-options "-fno-elide-constructors" }
struct
A
{};
struct
B
:
A
{
int
b
;
constexpr
B
(
A x
)
:
A
(
x
),
b
()
{}
};
struct
C
{
B c
;
constexpr
C
()
:
c
({})
{}
}
d
;