struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-990106-1.c
blob414efa5234a180f734b4b7a710fb61cf5eb302bb
1 /*
2 990106-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 int
12 foo(char *bufp)
14 int x = 80;
15 return (*bufp++ = x ? 'a' : 'b');
18 void
19 testTortureExecute (void)
21 char x;
23 ASSERT(foo (&x) == 'a');
25 return;