aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/m1.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/m1.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/m1.C17
1 files changed, 1 insertions, 16 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/m1.C b/gcc/testsuite/g++.old-deja/g++.pt/m1.C
index 2d1321380be..8b13acb23d9 100644
--- a/gcc/testsuite/g++.old-deja/g++.pt/m1.C
+++ b/gcc/testsuite/g++.old-deja/g++.pt/m1.C
@@ -1,16 +1 @@
-// Build don't link:
-
-int f1 () {
- struct A {
- A() : b (2) { }
- fred () { return b.hi_mom; }
- struct B {
- int hi_mom;
- B (int a) { hi_mom = a; }
- };
- B b;
- };
- A aa;
- return aa.fred();
-}
-/* crashes with signal 11 */
+ int fred () { return b.hi_mom; }