]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add a test for PR tree-optimization/69989
authorH.J. Lu <hongjiu.lu@intel.com>
Sun, 28 Feb 2016 17:41:45 +0000 (17:41 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Sun, 28 Feb 2016 17:41:45 +0000 (09:41 -0800)
PR tree-optimization/69989
* gcc.dg/torture/pr69989.c: New test.

From-SVN: r233792

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr69989.c [new file with mode: 0644]

index 835ee2bf13891bd9343a67ba145513ab5ca878e6..e7ad0db2c29fba90a1ada7addfcfb6ff38b48b61 100644 (file)
@@ -1,3 +1,8 @@
+2016-02-28  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR tree-optimization/69989
+       * gcc.dg/torture/pr69989.c: New test.
+
 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gcc.target/i386/stack-realign-win.c: New test.
diff --git a/gcc/testsuite/gcc.dg/torture/pr69989.c b/gcc/testsuite/gcc.dg/torture/pr69989.c
new file mode 100644 (file)
index 0000000..ada99f1
--- /dev/null
@@ -0,0 +1,23 @@
+/* { dg-do compile } */
+
+extern int a, b, d;
+extern char c[];
+void
+fn1 (void)
+{
+  for (;;)
+    {
+      if (b)
+       {
+LABEL_T5T5T:
+         for (; d < a; d++)
+           c[d] = 6;
+       }
+      break;
+    }
+  if (a > 6)
+    {
+      a = 4;
+      goto LABEL_T5T5T;
+    }
+}