struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-980505-2.c
blob2408de1b46f02cae91383573b1849c1eba318eef
1 /*
2 980505-2.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 typedef unsigned short Uint16;
12 typedef unsigned int Uint;
14 Uint f ()
16 Uint16 token;
17 Uint count;
18 static Uint16 values[1] = {0x9300};
20 token = values[0];
21 count = token >> 8;
23 return count;
26 void
27 testTortureExecute (void)
29 if (f () != 0x93)
30 ASSERT (0);
31 return;