struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr79388.c
bloba2d6fe2cad318f3b1a05362bcb0070d152953c55
1 /*
2 pr79388.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 rtl-optimization/79388 */
12 /* { dg-additional-options "-fno-tree-coalesce-vars" } */
14 unsigned int a, c;
16 unsigned int
17 foo (unsigned int p)
19 p |= 1;
20 p &= 0xfffe;
21 p %= 0xffff;
22 c = p;
23 return a + p;
26 void
27 testTortureExecute (void)
29 int x = foo (6);
30 if (x != 6)
31 ASSERT (0);
32 return;