OSDN Git Service

Initial revision
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.jason / synth.C
1 // Bug: the synthesized copy constructor for A is not found.
2 // Build don't link:
3
4 struct A {
5   // A (const A& a): i(a.i) {}
6   int i;
7 };
8
9 struct B {
10   A a;
11   B (const B& b): a(b.a), j(b.j) { } // gets bogus error - 
12   int j;
13 };