]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/loop1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / loop1.C
diff --git a/gcc/testsuite/g++.old-deja/g++.other/loop1.C b/gcc/testsuite/g++.old-deja/g++.other/loop1.C
deleted file mode 100644 (file)
index 3380dd4..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-// Test for bad loop optimization of goto fixups.
-// Special g++ Options: -O2
-
-typedef bool (*ftype) ();
-
-int c, d;
-struct A {
-  A() { ++c; }
-  A(const A&) { ++c; }
-  ~A() { ++d; }
-};
-
-void f (ftype func)
-{
-  A a;
-  do {
-    if ((*func)()) return;
-  } while (true);
-}
-
-bool test ()
-{
-  return true;
-}
-
-main ()
-{
-  f (test);
-  return (c != d);
-}