summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/t00.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/t00.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/t00.C12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/t00.C b/gcc/testsuite/g++.old-deja/g++.pt/t00.C
new file mode 100644
index 000000000..ad3b9ad72
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/t00.C
@@ -0,0 +1,12 @@
+// { dg-do assemble }
+
+int f1 () {
+ struct A { A() { a = 2; } int a; } ;
+ A aa;
+ return aa.a;
+}
+int f2 () {
+ struct A { A() { a = 2; } int a; } ;
+ A ab;
+ return ab.a;
+}