aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>1998-10-25 21:15:41 -0500
committerJason Merrill <jason@gcc.gnu.org>1998-10-25 21:15:41 -0500
commit813aedae9eaa7b6b49ae2e43bb4a4d0b45bce2db (patch)
treedd1d7e334396b12131735268480699f248085295 /gcc
parent3ae273dc9250656c8ba4f601165bc4d28074b042 (diff)
downloadgcc-813aedae9eaa7b6b49ae2e43bb4a4d0b45bce2db.zip
gcc-813aedae9eaa7b6b49ae2e43bb4a4d0b45bce2db.tar.gz
gcc-813aedae9eaa7b6b49ae2e43bb4a4d0b45bce2db.tar.bz2
bogus
From-SVN: r23346
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.law/code-gen3.C33
1 files changed, 0 insertions, 33 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.law/code-gen3.C b/gcc/testsuite/g++.old-deja/g++.law/code-gen3.C
deleted file mode 100644
index a9de483..0000000
--- a/gcc/testsuite/g++.old-deja/g++.law/code-gen3.C
+++ /dev/null
@@ -1,33 +0,0 @@
-// GROUPS passed code-generation
-// execution test - XFAIL *-*-*
-// code-gen file
-// From: mscha@anne.wifo.uni-mannheim.de (Martin Schader)
-// Date: Wed, 4 Aug 93 19:14:52 +0200
-// Message-ID: <9308041714.AA00752@anne.wifo.uni-mannheim.de>
-
-extern "C" int printf (const char *, ...);
-
-template<class T> struct Y {
- Y* next;
-};
-
-template<class T> struct X {
- X() { ptrY = 0; }
- void f();
- Y<T>* ptrY;
-};
-
-template<class T> void X<T>::f() {
- ptrY->next = ptrY = new Y<T>;
-//
-// Use two assignment statements and it works
-// ptrY = new Y<T>;
-// ptrY->next = ptrY;
-}
-
-int main() {
- X<int> x;
- x.f();
- printf ("PASS\n");
- exit(0);
-}