X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Fdtor10.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Fdtor10.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=c8f7babb0648fed1cad67d979e872852b916def9;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.other/dtor10.C b/gcc/testsuite/g++.old-deja/g++.other/dtor10.C deleted file mode 100644 index c8f7babb..00000000 --- a/gcc/testsuite/g++.old-deja/g++.other/dtor10.C +++ /dev/null @@ -1,40 +0,0 @@ -// Origin: Mark Mitchell - -extern "C" void abort (); - -int j; - -struct S { - static S* s[5]; - - S () { s[j++] = this; } - S (const S&) { s[j++] = this; } - ~S () { - for (int k = 0; k < j; ++k) - if (s[k] == this) - return; - abort (); - } -}; - -S* S::s[5]; - -struct T { - int i; - S s; -}; - -T t; - -T f () { - return t; -} - -void g (S) { -}; - -int main () -{ - g (f ().s); -} -