Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/initlist46.C

raw
1 // PR c++/48281
2 // { dg-options "-O2" }
3 // { dg-do run { target c++11 } }
4
5 #include <initializer_list>
6
7 typedef std::initializer_list<int> int1;
8 typedef std::initializer_list<int1> int2;
9 static int2 ib = {{42,2,3,4,5},{2,3,4,5,1},{3,4,5,2,1}};
10
11 int main()
12 {
13 return *(ib.begin()->begin()) != 42;
14 }