PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20071216-1.c
bloba337b773af8f26065d03e1f94808f8d6a4e95a2c
1 /* PR rtl-optimization/34490 */
3 extern void abort (void);
5 static int x;
7 int
8 __attribute__((noinline))
9 bar (void)
11 return x;
14 int
15 foo (void)
17 long int b = bar ();
18 if ((unsigned long) b < -4095L)
19 return b;
20 if (-b != 38)
21 b = -2;
22 return b + 1;
25 int
26 main (void)
28 x = 26;
29 if (foo () != 26)
30 abort ();
31 x = -39;
32 if (foo () != -1)
33 abort ();
34 x = -38;
35 if (foo () != -37)
36 abort ();
37 return 0;