aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/initlist45.C
blob: 31bd18d993f27e1bd5b2bd2553497e9d1c0812b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/46289
// { dg-do compile { target c++11 } }

struct A
{
  int i[2];
};

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