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-20050106-1.c
blob32a5c07e8d1c4f35639303ff6920a64b8dbd8340
1 /*
2 20050106-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 tree-optimization/19283 */
12 static inline unsigned short
13 foo (unsigned int *p)
15 return *p;
18 unsigned int u;
20 void
21 testTortureExecute (void)
23 if ((foo (&u) & 0x8000) != 0)
24 ASSERT (0);
25 return;