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