2 // { dg-do run { target c++11 } }
4 #include <initializer_list>
10 a (int i) { if (i) throw i; c++; }
14 void check (void (*f) ())
33 check ([] { s t { 0, 1 }; });
34 check ([] { s { 0, 1 }; });
35 check ([] { a t[2] { 0, 1 }; });
37 check ([] { array { 0, 1 }; });
38 check ([] { std::initializer_list <a> t { 0, 1 }; });
39 check ([] { std::initializer_list <a> { 0, 1 }; });