Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp0x/initlist46.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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 } |