aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/ctors9.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.law/ctors9.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.law/ctors9.C40
1 files changed, 1 insertions, 39 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.law/ctors9.C b/gcc/testsuite/g++.old-deja/g++.law/ctors9.C
index 280b429c352..29b55ae70ac 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/ctors9.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/ctors9.C
@@ -1,39 +1 @@
-// Build don't link:
-// Special g++ Options: -pedantic-errors
-// GROUPS passed constructors
-// ctors file
-// Message-Id: <9301132030.AA05210@cs.rice.edu>
-// From: dougm@cs.rice.edu (Doug Moore)
-// Subject: 2.3.3: accepts ctor-less derived class of ctor-ful base class
-// Date: Wed, 13 Jan 93 14:30:21 CST
-// Note: It gives an error now. But not a very good one.
-
-struct Foo
-{
- Foo(int aa);
- int a;
- const Foo* operator-> () const {return this;}
-};
-
-Foo::Foo(int aa)
-:a(aa)
-{ }
-
-
-struct var_Foo: public Foo
-{
- var_Foo* operator-> () {return this;}
-};// ERROR - base.*// ERROR - in class.*
-
-int blort(Foo& f)
-{
- return f->a;
-};
-
-main()
-{
- var_Foo b(2);// ERROR -
- b->a = 0;
- int x = blort(b);
- return x;
-}
+int main()