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-pr61682.c
blob82476414f4502f1d5f2b0a1d276209483921dac3
1 /*
2 pr61682.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/61682 */
13 int a, b;
14 static int *c = &b;
16 void
17 testTortureExecute (void)
19 int *d = &a;
20 for (a = 0; a < 12; a++)
21 *c |= *d / 9;
23 if (b != 1)
24 ASSERT (0);