X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.mike%2Fp9732b.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.mike%2Fp9732b.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=d4d200a28c95f52e244b888fc8925aa1608e7e78;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p9732b.C b/gcc/testsuite/g++.old-deja/g++.mike/p9732b.C deleted file mode 100644 index d4d200a2..00000000 --- a/gcc/testsuite/g++.old-deja/g++.mike/p9732b.C +++ /dev/null @@ -1,46 +0,0 @@ -// prms-id: 9732 - -int count; -int bail = 0; - -extern "C" void abort (void); -extern "C" void _exit (int); - - -struct base { - base () { ++count; } - ~base () { --count; } - base(const base&o) { ++count; } -}; - -class D { -public: - ~D() { - if (bail++) - { - // On some Linux boxes, we run the dtor for d twice, - // once before exit, and once after! - abort (); - } - else - { - if (count != 0) - _exit (1); - _exit (0); - } - } -} d; - -base base_object; - -base base_returning_function (); - -const base& base_ref = base_returning_function (); - -int main () { -} - -base base_returning_function () { - base local_base_object; - return local_base_object; -}