PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / initlist-ctor1.C
blobbc6d272023468fb149ef46e7f83dbe427a018f41
1 // PR c++/52905
2 // { dg-do compile { target c++11 } }
4 #include <initializer_list>
6 enum E { e1, e2 };
7 struct A
9   A(std::initializer_list<E>);  // { dg-message "A::A" }
10   A(int, E);                    // { dg-message "A::A" }
13 A a{e1,2};                      // { dg-error "" }