X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.mike%2Fp2736.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.mike%2Fp2736.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=43d81e4b63b600d9ee1db1aadfde48e4d370c95a;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p2736.C b/gcc/testsuite/g++.old-deja/g++.mike/p2736.C deleted file mode 100644 index 43d81e4b..00000000 --- a/gcc/testsuite/g++.old-deja/g++.mike/p2736.C +++ /dev/null @@ -1,30 +0,0 @@ -// This is a poor test case, it is meant to ensure that function local -// statics are destroyed at the right time. See PR 2736 for details. -// prms-id: 2736 - -#include - -int count; - -struct A { - int which; - A(int i) :which(i) { - // printf("ctor %x\n", this); - } - ~A() { - // printf("dtor %x\n", this); - if (++count != which) - abort (); - } -}; - -void -foo() { - static A a(1); -} - -A a(2); - -int main() { - foo(); -}