PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20111227-1.c
blob9fe330d6e99b7bdbc664b6042983f12f42a15e64
1 /* PR rtl-optimization/51667 */
2 /* Testcase by Uros Bizjak <ubizjak@gmail.com> */
4 extern void abort (void);
6 void __attribute__((noinline,noclone))
7 bar (int a)
9 if (a != -1)
10 abort ();
13 void __attribute__((noinline,noclone))
14 foo (short *a, int t)
16 short r = *a;
18 if (t)
19 bar ((unsigned short) r);
20 else
21 bar ((signed short) r);
24 short v = -1;
26 int main(void)
28 foo (&v, 0);
29 return 0;