Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/initlist-ctor1.C

raw
1 // PR c++/52905
2 // { dg-do compile { target 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 "" }