struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-950929-1.c
bloba72d7b662e9fe99b60c0c9c266e80fbd8d384aa5
1 /*
2 950929-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #pragma disable_warning 85
10 #endif
12 int f (char *p) { }
14 void
15 testTortureExecute (void)
17 char c;
18 char c2;
19 int i = 0;
20 char *pc = &c;
21 char *pc2 = &c2;
22 int *pi = &i;
24 *pc2 = 1;
25 *pi = 1;
26 *pc2 &= *pi;
27 f (pc2);
28 *pc2 = 1;
29 *pc2 &= *pi;
30 if (*pc2 != 1)
31 ASSERT (0);
32 return;