Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-initlist4.C
blob: d4019b2b9c45bd226360d1241f67eb7f46a37ab5 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
struct
A
{
int
i
;
};
struct
B
:
A
{
constexpr
B
():
A
{}
{}
};
struct
B2
:
A
{
constexpr
B2
():
A
{
1
}
{}
};
struct
C
{
protected
:
int
i
;
};
struct
D
:
C
{
constexpr
D
():
C
{}
{}
};