Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20071205-1.c
blobfe6e462d5ff0c4ac32f3017e8717bdafa29c08f4
1 /*
2 20071205-1.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 /* PR middle-end/34337 */
13 int
14 foo (int x)
16 return ((x << 8) & 65535) | 255;
19 void
20 testTortureExecute (void)
22 if (foo (0x32) != 0x32ff || foo (0x174) != 0x74ff)
23 ASSERT (0);
24 return;