summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/complit6.C
blob: d3187a65b2dd0d2ed2fb36f37c8dd80703a4ef39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/20103
// { dg-options "" }

struct A
{
  A(const A&);
};

struct B
{
  A a;
};

void foo(B);

void bar(A &x)
{
  foo((B){x});
}