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