struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20000217-1.c
blob0d265f37e6de23862f0420cbd46a6db734ae74c3
1 /*
2 20000217-1.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 unsigned short int showbug(unsigned short int *a, unsigned short int *b)
13 *a += *b -8;
14 return (*a >= 8);
17 void
18 testTortureExecute (void)
20 unsigned short int x = 0;
21 unsigned short int y = 10;
23 if (showbug(&x, &y) != 0)
24 ASSERT (0);
26 return;