X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.law%2Fdtors5.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.law%2Fdtors5.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=0628041751ca588fe22d63bcb6b91499473f4251;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.law/dtors5.C b/gcc/testsuite/g++.old-deja/g++.law/dtors5.C deleted file mode 100644 index 06280417..00000000 --- a/gcc/testsuite/g++.old-deja/g++.law/dtors5.C +++ /dev/null @@ -1,33 +0,0 @@ -// GROUPS passed destructors -// dtor file: -// Message-Id: <1992Jun25.181845.18886@leland.Stanford.EDU> -// From: niz@leland.stanford.edu (Jim Nisbet) -// Subject: gcc 2.2.2 -- c++ bug: destructor called twice (example) -// Date: 25 Jun 92 18:18:45 GMT - -#include - -int things = 0; - -class foo { -public: - foo() { things++; } - foo(const foo&) { things++; } - ~foo() { things--; } - - int i; -}; - -void -sub(foo f) { - ; -}; - - -int main() { - sub(foo()); - if (things == 0) - printf ("PASS\n"); - else - { printf ("FAIL\n"); return 1; } -}