Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist40.C
blob: 6e6a11a64541b1f5393365790e16a74719c5d028 [
file
] [
log
] [
blame
]
// PR c++/54835, DR 1518
// { dg-do compile { target c++11 } }
struct
A
{
explicit
A
(
int
=
42
);
};
int
main
()
{
A a1
=
{
};
// { dg-error "explicit" }
A a2
=
{
24
};
// { dg-error "explicit" }
}