Sign in
gnu
/
gcc
/
refs/heads/devel/c++-contracts
/
.
/
gcc
/
testsuite
/
g++.dg
/
init
/
explicit1.C
blob: 328e867319800049e45dae4657393dc15d2bbb58 [
file
] [
log
] [
blame
]
// PR c++/60417
// { dg-options -pedantic }
struct
A
{
explicit
A
(
int
=
0
);
};
struct
B
{
A a
;
};
int
main
()
{
B b
=
{};
// { dg-warning "explicit" "" { target c++11 } }
}