summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr51198.C
blob: 65009ff545829456881b3f21a3bb7ff0eff8bf42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* { dg-options "-std=gnu++0x" } */

struct A
{
  int i = 0 ? 0 : throw 1;
};


struct B
{
  int f();
  int i = f();
};

struct C
{
  C(int);
};

struct D
{
  C a = 0;
};

A a;
B b;
D d;