Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr46675.c
blob7493f0e6032bd438f50aa2dd06c7afadb19ae0b9
1 /* { dg-do run } */
2 /* { dg-options "-O2" } */
4 extern void abort (void);
6 int j;
8 void
9 __attribute__((noinline))
10 foo (int n)
12 int npairs, i;
13 npairs = n - (-__INT_MAX__ - 1);
15 if (npairs > 0)
16 for (i = 0; i < npairs; i++)
17 j++;
20 int
21 main ()
23 foo (5 - __INT_MAX__ - 1);
25 if (j != 5)
26 abort ();
28 return 0;