2 // { dg-do compile { target c++11 } }
4 #include <initializer_list>
6 constexpr std::initializer_list<int> good1 = { 1, 2, 3 };
7 struct foo { int a, b; };
8 constexpr foo good2 = { 1, 2 };
10 constexpr std::initializer_list<foo> bad1 = { { 1, 2 }, { 3, 4} };
11 constexpr std::initializer_list<foo> bad2 = { good2, good2 };