* gcc.dg/stack-check-5.c: Skip with -fstack-protector.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr54919.c
blob9f1affce234f2d601e5b3c23607e44cf01e53f19
1 /* PR tree-optimization/54919 */
2 /* Testcase by Zdenek Sojka <zsojka@seznam.cz> */
4 /* { dg-do run } */
5 /* { dg-options "-O3 -ffast-math -funroll-loops -fvariable-expansion-in-unroller" } */
7 int a[10];
8 extern void abort(void) __attribute__((noreturn));
10 int __attribute__((__noinline__, __noclone__))
11 foo (void)
13 double d;
14 int i;
15 for (i = 0, d = 0; i < 64; i++)
16 d--;
17 return (int) d;
20 int
21 main (void)
23 if (foo () != -64)
24 abort ();
25 return 0;