summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/pr52071.C
blob: 99456c0041a077c3c6fe337f0e8ae2f3a0154ed9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// PR c++/52071

struct C1 {
    C1(int);
};

struct C2 {
    C2();
    C2(C1);
};

void f()
{
  int x;
  int y = 1;
  C2  vc;

  vc = C2(C1(x = y));

  vc = (C2(C1(x = y)));

  vc = (C2(C1((0, x = y))));
}