* gcc.dg/20020122-3.c: New test.

From-SVN: r49148
This commit is contained in:
Janis Johnson 2002-01-23 18:54:27 +00:00 committed by Janis Johnson
parent 0a01c261ff
commit a843571630
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2002-01-23 Janis Johnson <janis187@us.ibm.com>
* gcc.dg/20020122-3.c: New.
2002-01-23 Jakub Jelinek <jakub@redhat.com>
* g++.dg/other/gc1.C: New test.

View File

@ -0,0 +1,15 @@
/* Check that the combination of -Os and -fprefetch-loop-arrays does not
cause the compiler to crash, which it originally did on i?86.
Warnings are turned off because not all targets support prefetch. */
/* { dg-do compile } */
/* { dg-options "-Os -fprefetch-loop-arrays -w" } */
/* { dg-options "-Os -fprefetch-loop-arrays -mcpu=pentium3 -w" { target i?86-*-* } } */
int foo (int *p, int n)
{
int i, r;
for (i = 0; i < n; i++)
r += p[i];
return r;
}