summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr32950.C
blob: 8d64296e40b6079770e3581e447fa4d8bd1f56ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile } */

struct A
{
  __complex__ double c;
};

struct B
{
  A a;
  B(A x) : a(x) {}
  void foo();
};

void bar()
{
  B b = A();
  B(b).foo();
}