X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Fgoto4.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Fgoto4.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=75461d44d840ee239320cb5c79ef6681a88cad3f;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.other/goto4.C b/gcc/testsuite/g++.old-deja/g++.other/goto4.C deleted file mode 100644 index 75461d44..00000000 --- a/gcc/testsuite/g++.old-deja/g++.other/goto4.C +++ /dev/null @@ -1,26 +0,0 @@ -// Test that we clean up temporaries bound to references properly when -// jumping out of their scope. - -int ret = 1; - -struct A -{ - ~A() { ret = 0; } -}; - -void f() -{ - if (0) - { - out: - return; - } - const A& a = A(); - goto out; -} - -int main() -{ - f(); - return ret; -}