struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr64260.c
blobe7b5ea36230b7b082a9ea2062788dd3519785c53
1 /*
2 pr642602.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/64260 */
13 int a = 1, b;
15 void
16 foo (char p)
18 int t = 0;
19 for (; b < 1; b++)
21 int *s = &a;
22 if (--t)
23 *s &= p;
24 *s &= 1;
28 void
29 testTortureExecute (void)
31 foo (0);
32 if (a != 0)
33 ASSERT (0);
34 return;