summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/initlist-array9.C
blob: 4a5d74f6166dfbe03bb02a23a7d7e53431f12012 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR c++/93033
// { dg-do compile { target c++11 } }

struct A {
  A ();
  ~A ();
};

A f();

struct B {
  A a;
  bool b;
};

void
foo ()
{
  B i[] { f() };
}