Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist-ctor1.C
blob: bc6d272023468fb149ef46e7f83dbe427a018f41 [
file
] [
log
] [
blame
]
// PR c++/52905
// { dg-do compile { target c++11 } }
#include
<initializer_list>
enum
E
{
e1
,
e2
};
struct
A
{
A
(
std
::
initializer_list
<
E
>);
// { dg-message "A::A" }
A
(
int
,
E
);
// { dg-message "A::A" }
};
A a
{
e1
,
2
};
// { dg-error "" }