aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/ctors17.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.law/ctors17.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.law/ctors17.C22
1 files changed, 1 insertions, 21 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.law/ctors17.C b/gcc/testsuite/g++.old-deja/g++.law/ctors17.C
index 41e3217faf9..29b55ae70ac 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/ctors17.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/ctors17.C
@@ -1,21 +1 @@
-// Build don't link:
-// GROUPS passed constructors
-// ctor file
-// Message-Id: <199306151813.gD28471@mail.Germany.EU.net>
-// From: stephan@ifconnection.de (Stephan Muehlstrasser)
-// Subject: gcc 2.4.3.1: illegal constructor call not rejected
-// Date: Tue, 15 Jun 1993 18:34:14 +0200 (MET DST)
-
-
-#include <fstream.h>
-
-class X : public ifstream {
- public:
- X(int a, char *b) {} // ERROR - candidate
-}; // ERROR - candidate
-main()
-{
- X *y = new X(10, "123");
- // the compiler must reject this constructor call:
- X *x = new X("abc");// ERROR - .*
-}
+int main()