2002-05-10 David S. Miller <davem@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / loop-8.c
blobe8d8cb5f045d8c1f25d11efcd3cb90de7cafbdb9
1 double a[3] = { 0.0, 1.0, 2.0 };
3 void bar (int x, double *y)
5 if (x || *y != 1.0)
6 abort ();
9 int main ()
11 double c;
12 int d;
13 for (d = 0; d < 3; d++)
15 c = a[d];
16 if (c > 0.0) goto e;
18 bar(1, &c);
19 exit (1);
21 bar(0, &c);
22 exit (0);