aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/synth.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/synth.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/synth.C13
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 00000000000..733243cf363
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.jason/synth.C
@@ -0,0 +1,13 @@
+// Bug: the synthesized copy constructor for A is not found.
+// Build don't link:
+
+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) { } // gets bogus error -
+ int j;
+};