* testsuite/libgomp.fortran/vla7.f90: Add -w to options.
[official-gcc.git] / gcc / testsuite / gcc.dg / 20001101-1.c
blobd0eb6e23ce0a4e56db36add6bb140da162a97a47
1 /* { dg-do run { target sparc*-*-* } } */
2 /* { dg-options "-O2 -mcpu=ultrasparc -mvis" } */
4 extern void abort (void);
5 extern void exit (int);
7 int foo(double a, int b, int c, double *d, int h)
9 int f, g;
10 double e;
13 f = (int) a;
14 a -= (double) f;
15 if (b == 1)
17 g = c;
18 f += g;
19 c -= g;
21 if (b == 2)
23 f++;
24 h = c;
26 if (!h)
28 for (g = 0; g <= 10; g++)
29 for (h = 0; h <= 10; h++)
30 e += d [10 + g - h];
31 goto l;
33 return f & 7;
36 int main()
38 if (foo(0.1, 1, 3, 0, 1) != 3)
39 abort ();
40 exit (0);