Sign in
gnu
/
gcc
/
fba228e259dd5112851527f2dbb62c5601100985
/
.
/
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
{}
{}
};