diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/synth.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/synth.C | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/synth.C b/gcc/testsuite/g++.old-deja/g++.jason/synth.C new file mode 100644 index 000000000..a57f23ce9 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/synth.C @@ -0,0 +1,13 @@ +// { dg-do assemble } +// Bug: the synthesized copy constructor for A is not found. + +struct A { + // A (const A& a): i(a.i) {} + int i; +}; + +struct B { + A a; + B (const B& b): a(b.a), j(b.j) { } // { dg-bogus "" } + int j; +}; |