aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/initlist8.C
blob: db63eee78b60704421dada5b6c696cf7499f055c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/37740
// { dg-options "-std=c++0x" }

struct A
{
  int i;
};

struct B
{
  double d;
  A i;
};

int main()
{
  A a;
  new B{3.2, a};
}