summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/initlist46.C
blob: 2b9f07dbdc9be2d15f4dcd961d998eda55e36b9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/48281
// { dg-options "-std=c++0x -O2" }
// { dg-do run }

#include <initializer_list>

typedef std::initializer_list<int>  int1;
typedef std::initializer_list<int1> int2;
static int2 ib = {{42,2,3,4,5},{2,3,4,5,1},{3,4,5,2,1}};

int main()
{
  return *(ib.begin()->begin()) != 42;
}