diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.law/dtors3.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.law/dtors3.C | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.law/dtors3.C b/gcc/testsuite/g++.old-deja/g++.law/dtors3.C deleted file mode 100644 index 7ed92fcedb9..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.law/dtors3.C +++ /dev/null @@ -1,37 +0,0 @@ -// GROUPS passed destructors -// dtor file -// Message-Id: <9301242117.AA04053@cs.rice.edu> -// From: dougm@cs.rice.edu (Doug Moore) -// Subject: 2.3.3: premature dtor of temp? -// Date: Sun, 24 Jan 93 15:17:07 CST - -#include <stdio.h> -#include <stdlib.h> - -int killed = 0; - -class Foo -{ - int a; -public: - Foo() - :a(0) {;} - ~Foo() { killed++;} - Foo& operator << (int b) - { - a += b; - if (killed) - { - printf ("FAIL\n"); - exit (0); - } - return *this; - } -}; - -int main() -{ - Foo() << 1 << 3 << 5 << 7; - printf ("PASS\n"); -} - |