struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr22630.c
blobf79415f3ae3e1f338174b67ab39802290a55516b
1 /*
2 pr15262.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 int j;
13 void bla (int *r)
15 int *p, *q;
17 p = q = r;
18 if (!p)
19 p = &j;
21 if (p != q)
22 j = 1;
25 void
26 testTortureExecute (void)
28 bla (0);
29 if (!j)
30 ASSERT (0);
31 return;