20060905-1.c: New test.

* gcc.c-torture/execute/20060905-1.c: New test.

From-SVN: r116692
This commit is contained in:
Eric Botcazou 2006-09-05 09:05:08 +02:00 committed by Eric Botcazou
parent 6b887797b2
commit fd89bc3f91
2 changed files with 39 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2006-09-05 Eric Botcazou <ebotcazou@libertysurf.fr>
* gcc.c-torture/execute/20060905-1.c: New test.
2006-09-05 Paul Thomas <pault@gcc.gnu.org>
PR fortran/28908

View File

@ -0,0 +1,35 @@
/* PR rtl-optimization/28386 */
/* Origin: Volker Reichelt <reichelt@gcc.gnu.org> */
extern void abort(void);
volatile char s[256][3];
char g;
static void dummy(char a)
{
g = a;
}
static int foo(void)
{
int i, j=0;
for (i = 0; i < 256; i++)
if (i >= 128 && i < 256)
{
dummy (s[i - 128][0]);
++j;
}
return j;
}
int main(void)
{
if (foo () != 128)
abort ();
return 0;
}