Add a testcase for PR middle-end/47364.
authorH.J. Lu <hongjiu.lu@intel.com>
Fri, 5 Aug 2011 22:05:43 +0000 (22:05 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 5 Aug 2011 22:05:43 +0000 (15:05 -0700)
2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>

PR middle-end/47364
* gcc.dg/torture/pr47364-1.c: New.

From-SVN: r177487

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr47364-1.c [new file with mode: 0644]

index 3b5a17fbf19625e85ba30fee73a18355103edd25..8f14a9308e684fb3e3fd4da3d0e4994e8b3b7ef0 100644 (file)
@@ -1,3 +1,8 @@
+2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR middle-end/47364
+       * gcc.dg/torture/pr47364-1.c: New.
+
 2011-08-05  Thomas Koenig  <tkoenig@gcc.gnu.org>
 
        PR fortran/37221
diff --git a/gcc/testsuite/gcc.target/i386/pr47364-1.c b/gcc/testsuite/gcc.target/i386/pr47364-1.c
new file mode 100644 (file)
index 0000000..49ee6f4
--- /dev/null
@@ -0,0 +1,12 @@
+/* { dg-do compile } */
+/* { dg-options "-O" } */
+
+static unsigned char foo[256];
+
+arc4_init(void)
+{
+  int n;
+
+  for (n = 0; n < 256; n++)
+    foo[n] = n;
+}