Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-diag4.C
blob: c603bdd1a00a5c18c3f97a1a571b2c1d8d79d297 [
file
] [
log
] [
blame
]
// Origin: PR c++/51633
// { dg-do compile { target c++11 } }
struct
A
{
~
A
();
};
struct
B
{
A a
;
constexpr
B
()
{}
};
struct
A1
{
int
a
;
~
A1
();
};
struct
B1
{
A1 a1
;
constexpr
B1
()
{}
// { dg-error "B1::a1" "" { target c++17_down } }
};