OSDN Git Service

Add a testcase for PR tree-optimization/43781.
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Jun 2010 17:25:49 +0000 (17:25 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Jun 2010 17:25:49 +0000 (17:25 +0000)
2010-06-28  H.J. Lu  <hongjiu.lu@intel.com>

PR tree-optimization/43781
* gcc.dg/torture/pr43781.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161505 138bc75d-0d04-0410-961f-82ee72b054a4

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

index e17bb03..16e1c67 100644 (file)
@@ -1,3 +1,8 @@
+2010-06-28  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR tree-optimization/43781
+       * gcc.dg/torture/pr43781.c: New.
+
 2010-06-28  Paul Thomas  <pault@gcc.gnu.org>
 
        PR fortran/40158
diff --git a/gcc/testsuite/gcc.dg/torture/pr43781.c b/gcc/testsuite/gcc.dg/torture/pr43781.c
new file mode 100644 (file)
index 0000000..37fe5a3
--- /dev/null
@@ -0,0 +1,45 @@
+/* { dg-do compile } */
+
+typedef int int32_t;
+typedef unsigned char uint8_t;
+
+struct S0
+{
+  uint8_t f3;
+};
+
+struct S2
+{
+  uint8_t f5;
+};
+
+struct S0 g_22 = {
+  0
+};
+
+int32_t g_91;
+const struct S2 *g_314;
+const struct S2 **g_313 = &g_314;
+struct S2 g_320[2] = {
+  0
+};
+
+void
+int32func (uint64p_34)
+{
+  for (g_22.f3 = 0; g_22.f3 <= 0; g_22.f3)
+    {
+    lbl_491:{
+        if (1)
+          {
+            int32_t *l_453[2][7][7][1][1];
+            int i, j, k, l, m;
+            for (m; m; m++)
+              l_453[i][j][k][l][m];
+          }
+        *g_313 = 0;
+        if (g_91)
+          goto lbl_491;
+      }
+    }
+}