OSDN Git Service

PR c++/53500
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / initlist-ctor1.C
1 // PR c++/52905
2 // { dg-options -std=c++11 }
3
4 #include <initializer_list>
5
6 enum E { e1, e2 };
7 struct A
8 {
9   A(std::initializer_list<E>);  // { dg-message "A::A" }
10   A(int, E);                    // { dg-message "A::A" }
11 };
12
13 A a{e1,2};                      // { dg-error "" }