aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/ctors4.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.law/ctors4.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.law/ctors4.C27
1 files changed, 0 insertions, 27 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.law/ctors4.C b/gcc/testsuite/g++.old-deja/g++.law/ctors4.C
deleted file mode 100644
index dc1f08beaf2..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.law/ctors4.C
+++ /dev/null
@@ -1,27 +0,0 @@
-// Special g++ Options: -w
-// GROUPS passed constructors
-// ctors file
-// Message-Id: <ACHILLES.92Nov25192123@i90s8.ira.uka.de>
-// From: Alf-Christian Achilles <achilles@ira.uka.de>
-// Subject: g++ 2.3.1 rejects initialization with object of derived class
-// Date: 25 Nov 92 19:21:23
-
-extern "C" int printf (const char *, ...);
-
-class A {
-public:
- virtual void foo() {};
-};
-
-class B : public A {
-public:
- void foo() {};
-};
-
-main ()
-{
- B b;
- A a = b; //unjustified error: unexpected argument to constructor `A'
- printf ("PASS\n");
-}
-