Add a testcase for PR rtl-optimization/47958.
authorH.J. Lu <hongjiu.lu@intel.com>
Fri, 29 Jul 2011 05:17:36 +0000 (05:17 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 29 Jul 2011 05:17:36 +0000 (22:17 -0700)
2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>

PR rtl-optimization/47958
* gcc.dg/torture/pr47958-1.c: New.

From-SVN: r176914

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

index d5e61cb5e8b840febd156cb36b1e44c4b3ea7dc7..aebaf018f75f1a6d7050f922138eb5939a3b7b1b 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR rtl-optimization/47958
+       * gcc.dg/torture/pr47958-1.c: New.
+
 2011-07-29  Wei Guozhi  <carrot@google.com>
 
        PR rtl-optimization/49799
diff --git a/gcc/testsuite/gcc.dg/torture/pr47958-1.c b/gcc/testsuite/gcc.dg/torture/pr47958-1.c
new file mode 100644 (file)
index 0000000..9fdf142
--- /dev/null
@@ -0,0 +1,13 @@
+/* { dg-do assemble } */
+
+void (*foo[6][6]) (int);
+void bar (hdR)
+    int hdR;
+{ }
+void xxx ()
+{
+    unsigned int i, j;
+    for (i = 0; i < 6; ++i)
+       for (j = 0; j < 6; ++j)
+            foo [i][j] = bar;
+}