struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20020805-1.c
blob3a480090312511d0b306379155513116fa309caa
1 /*
2 20020805-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 /* This testcase was miscompiled on IA-32, because fold-const
12 assumed associate_trees is always done on PLUS_EXPR. */
14 void check (unsigned int m)
16 if (m != (unsigned int) -1)
17 ASSERT (0);
20 unsigned int n = 1;
22 void testTortureExecute (void)
24 unsigned int m;
25 m = (1 | (2 - n)) | (-n);
26 check (m);
27 return;