aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/m9a.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/m9a.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/m9a.C5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/m9a.C b/gcc/testsuite/g++.old-deja/g++.pt/m9a.C
new file mode 100644
index 00000000000..9118306d697
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/m9a.C
@@ -0,0 +1,5 @@
+// Build don't link:
+
+struct A { A() { a = 1; } int a; }; // ERROR -
+struct A { A() { a = 2; } int a; }; // ERROR -
+A aavv;