]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/goto4.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / goto4.C
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 (file)
index 75461d4..0000000
+++ /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;
-}