summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/ref11.C
blob: b283e3a69be63c9d27ae1611bd494254c5e98a4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/14230

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

struct D {
  A a;
};

const A& z = D().a;