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