diff gcc/testsuite/gcc.dg/graphite/pr83887.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gcc/testsuite/gcc.dg/graphite/pr83887.c	Thu Oct 25 07:37:49 2018 +0900
@@ -0,0 +1,22 @@
+/* { dg-do compile } */
+/* { dg-options "-O -floop-nest-optimize -fno-tree-loop-im" } */
+
+int z4, g7;
+
+void
+x3 (int my)
+{
+  while (my < 2)
+    {
+      for (z4 = 0; z4 < 2; ++z4)
+	{
+	}
+
+      if (my != 0)
+	for (g7 = 0; g7 < 2; ++g7)
+	  {
+	  }
+
+      ++my;
+    }
+}