PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20140622-1.c
blobd3aa66bb59e8961aa02967c53209ee04296f6cfb
1 unsigned p;
3 long __attribute__((noinline, noclone))
4 test (unsigned a)
6 return (long)(p + a) - (long)p;
9 int
10 main ()
12 p = (unsigned) -2;
13 if (test (0) != 0)
14 __builtin_abort ();
15 if (test (1) != 1)
16 __builtin_abort ();
17 if (test (2) != -(long)(unsigned)-2)
18 __builtin_abort ();
19 p = (unsigned) -1;
20 if (test (0) != 0)
21 __builtin_abort ();
22 if (test (1) != -(long)(unsigned)-1)
23 __builtin_abort ();
24 if (test (2) != -(long)(unsigned)-2)
25 __builtin_abort ();
26 return 0;