PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 930930-2.c
blobeb34d11fe2264f998925665eb5b0a1a2cf5a29ac
1 int
2 test_endianness()
4 union doubleword
6 double d;
7 unsigned long u[2];
8 } dw;
9 dw.d = 10;
10 return dw.u[0] != 0 ? 1 : 0;
13 int
14 test_endianness_vol()
16 union doubleword
18 volatile double d;
19 volatile long u[2];
20 } dw;
21 dw.d = 10;
22 return dw.u[0] != 0 ? 1 : 0;
25 main ()
27 if (test_endianness () != test_endianness_vol ())
28 abort ();
29 exit (0);