aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/tt2.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/tt2.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/tt2.C27
1 files changed, 0 insertions, 27 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/tt2.C b/gcc/testsuite/g++.old-deja/g++.pt/tt2.C
deleted file mode 100644
index f6c435b1cdc..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.pt/tt2.C
+++ /dev/null
@@ -1,27 +0,0 @@
-// Build don't link:
-
-int f1 () {
- struct A {
- A() : b (2) { }
- int fred () { return b.hi_mom; }
- struct B {
- int hi_mom;
- B (int a) { hi_mom = a; }
- };
- B b;
- };
- A aa;
- return aa.fred();
-}
-
-int f2 () {
- struct A {
- ~A() { a = 3; }
- int a;
- int fred () { return a + 1; }
- };
-
- A ab;
- ab.a = 12;
- return ab.fred();
-}