From f6d44f201605eed01f2a9e1cc2781277d08e37c5 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 5 Aug 2011 22:05:43 +0000 Subject: [PATCH] Add a testcase for PR middle-end/47364. 2011-08-05 H.J. Lu PR middle-end/47364 * gcc.dg/torture/pr47364-1.c: New. From-SVN: r177487 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/i386/pr47364-1.c | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 gcc/testsuite/gcc.target/i386/pr47364-1.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3b5a17fbf19..8f14a9308e6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-08-05 H.J. Lu + + PR middle-end/47364 + * gcc.dg/torture/pr47364-1.c: New. + 2011-08-05 Thomas Koenig 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 index 00000000000..49ee6f46c3c --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr47364-1.c @@ -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; +}