Rebase.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr30120.c
blob22fd843a79f8a695823d73f274d94e4bd635cad0
1 /* { dg-do run } */
2 /* { dg-options "-O2 -ffast-math" } */
4 extern void abort (void);
6 static void
7 foo (double a, double weight, const double *ring, double *phase)
9 *phase = *ring * weight;
12 void
13 foo2 (void)
15 foo (0, 1, (double *) 0, (double *) 0);
18 int
19 main (void)
21 double t1 = 1, c1;
22 foo (0, 1, &t1, &c1);
23 if (c1 < 0.5)
24 abort();
26 return 0;