]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Mon, 10 Jun 2002 21:39:48 +0000 (21:39 +0000)
committerNo Author <no-author@gcc.gnu.org>
Mon, 10 Jun 2002 21:39:48 +0000 (21:39 +0000)
'gcc-3_1-branch'.

From-SVN: r54457

gcc/testsuite/gcc.c-torture/compile/20020605-1.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.c-torture/compile/20020605-1.c b/gcc/testsuite/gcc.c-torture/compile/20020605-1.c
new file mode 100644 (file)
index 0000000..960a4be
--- /dev/null
@@ -0,0 +1,17 @@
+/* This testcase caused on IA-32 -O2 endless loop in
+   merge_blocks when trying to merge a basic block
+   with itself.  */
+
+void f (void)
+{
+  char *c;
+  do
+    {
+      if (c)
+       break;
+    }
+  while (1);
+  if (!c)
+    while (1)
+      f ();
+}