struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr48717.c
blobd0745e4b9433507a5d6f2785b66dfc7e291ab5ea
1 /*
2 pr48717.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 /* PR tree-optimization/48717 */
13 int v = 1, w;
15 unsigned short
16 foo (unsigned short x, unsigned short y)
18 return x + y;
21 void
22 bar (void)
24 v = foo (~w, w);
27 void
28 testTortureExecute (void)
30 bar ();
31 if (v != (unsigned short) -1)
32 ASSERT (0);
33 return;