struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr64756.c
blob1cb76d75a8f391b9ee5fd9287043b0b72ab40fe8
1 /*
2 pr64756.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/64756 */
13 int a, *tmp, **c = &tmp;
14 volatile int d;
15 static int *volatile *e = &tmp;
16 unsigned int f;
18 static void
19 fn1 (int *p)
21 int g;
22 for (; f < 1; f++)
23 for (g = 1; g >= 0; g--)
25 d || d;
26 *c = p;
28 if (tmp != &a)
29 ASSERT (0);
31 *e = 0;
35 void
36 testTortureExecute (void)
38 fn1 (&a);
39 return;