PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr64718.c
blob58773e0453a203a621f0aa3d0c3b2eef3779b62c
1 static int __attribute__ ((noinline, noclone))
2 swap (int x)
4 return (unsigned short) ((unsigned short) x << 8 | (unsigned short) x >> 8);
7 static int a = 0x1234;
9 int
10 main (void)
12 int b = 0x1234;
13 if (swap (a) != 0x3412)
14 __builtin_abort ();
15 if (swap (b) != 0x3412)
16 __builtin_abort ();
17 return 0;