aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/torture/pr51198.C
blob: 79819e04eaa2a2ad805202655fc99802fc62e3fd (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-do compile { target c++11 } }

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;