PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20040309-1.c
blob49fa79560c60b4ca545f8575d64b527d379b9216
1 extern void abort ();
3 int foo(unsigned short x)
5 unsigned short y;
6 y = x > 32767 ? x - 32768 : 0;
7 return y;
10 int main()
12 if (foo (0) != 0)
13 abort ();
14 if (foo (32767) != 0)
15 abort ();
16 if (foo (32768) != 0)
17 abort ();
18 if (foo (32769) != 1)
19 abort ();
20 if (foo (65535) != 32767)
21 abort ();
22 return 0;