8sa1-gcc/gcc/testsuite/gcc.c-torture/execute/pending-4.c

34 lines
410 B
C
Raw Normal View History

1997-08-19 03:34:40 -04:00
void dummy (x, y)
int *x;
int y;
{}
int
main (argc, argv)
int argc;
char **argv;
{
int number_columns=9;
int cnt0 = 0;
int cnt1 = 0;
int i,A1;
for (i = number_columns-1; i != 0; i--)
{
if (i == 1)
{
dummy(&A1, i);
cnt0++;
}
else
{
dummy(&A1, i-1);
cnt1++;
}
}
if (cnt0 != 1 || cnt1 != 7)
abort ();
exit (0);
}