Rebase.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr54877.c
blobcee406e50d364992da07b95eac2a49c8b7bd0a73
1 /* PR tree-optimization/54877 */
2 /* { dg-do run } */
3 /* { dg-options "-ffast-math" } */
5 extern void abort (void);
7 int
8 foo (void)
10 double d;
11 int i;
12 for (i = 0, d = 0; i < 64; i++)
13 d--;
14 return (int) d;
17 int
18 main ()
20 if (foo () != -64)
21 abort ();
22 return 0;