re PR tree-optimization/17624 (ICE: SSA corruption (another one))
authorAndrew Pinski <pinskia@physics.uc.edu>
Fri, 24 Sep 2004 13:29:25 +0000 (13:29 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Fri, 24 Sep 2004 13:29:25 +0000 (06:29 -0700)
2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/17624
        * g++.dg/opt/pr17624.C: New test.

From-SVN: r88034

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr17624.C [new file with mode: 0644]

index b687ac245aa0352d68d1388e437e9b964702888b..8b4d071659896172173cda201f43c52f1942b283 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       PR tree-opt/17624
+       * g++.dg/opt/pr17624.C: New test.
+
 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
 
        PR c/6980
diff --git a/gcc/testsuite/g++.dg/opt/pr17624.C b/gcc/testsuite/g++.dg/opt/pr17624.C
new file mode 100644 (file)
index 0000000..07fbf14
--- /dev/null
@@ -0,0 +1,23 @@
+// { dg-do compile }
+// { dg-options "-O2" }
+
+extern void foo (void);
+int c;
+void foo (int n)
+{
+  int j = 0;
+  try
+    {
+      for(;;)
+        {
+          foo ();
+          if (j ++ == n)
+            break;
+          foo ();
+        }
+    }
+  catch (...)
+    {
+      c = j;
+    }
+}