summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/initlist45.C
blob: 0e34bc189773cde1f28d6b5f2eb67bd6d74d35a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/46289
// { dg-options -std=c++0x }

struct A
{
  int i[2];
};

struct B
{
  A a;
  B(): a({{1,2}}) { }
};