summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/default1.C
blob: a6d9681856371bedccfe1472ab31eeb93e06f587 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// PR c++/24103
// ICE in simple_cst_equal
// Origin: Alexander Stepanov <astepanov@softminecorp.com>
// { dg-do compile }
// { dg-options "" }

struct S
{
  int i;
};

struct A
{
  A(S = (S){0});
};

struct B
{
  B(S = (S){0});
};

B::B(S) {}