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-pr69097-1.c
blob863b77b8607c64210cf7964439f9346c8bd2eb0d
1 /*
2 pr69097-1.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/69097 */
13 int a, b;
14 unsigned int c;
16 void
17 testTortureExecute (void)
19 int d = b;
20 b = ~(~a + (~d | b));
21 a = ~(~c >> b);
22 c = a % b;
23 return;