aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/loop1.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/loop1.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/loop1.C30
1 files changed, 0 insertions, 30 deletions
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
index 3380dd4d74d..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.other/loop1.C
+++ /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);
-}