8sa1-gcc/gcc/testsuite/gcc.c-torture/execute/20000819-1.c
Jakub Jelinek 46639003c8 20000606-1.c: New test.
* gcc.c-torture/compile/20000606-1.c: New test.
	* gcc.c-torture/compile/20000728-1.c: New test.
	* gcc.c-torture/execute/20000801-1.c: New test.
	* gcc.c-torture/execute/20000801-2.c: New test.
	* gcc.c-torture/execute/20000819-1.c: New test.
	* gcc.c-torture/execute/20000819-1.x: XFAIL.
	* gcc.dg/20000629-1.c: New test.
	* gcc.dg/20000724-1.c: New test.
	* gcc.dg/20000807-1.c: New test.

From-SVN: r35834
2000-08-21 10:30:38 +02:00

18 lines
192 B
C

int a[2] = { 2, 0 };
void foo(int *sp, int cnt)
{
int *p, *top;
top = sp; sp -= cnt;
for(p = sp; p <= top; p++)
if (*p < 2) exit(0);
}
int main()
{
foo(a + 1, 1);
abort();
}