struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-990827-1.c
blob89e253b7e4ffe3d570e8c446b4d12b68251b1921
1 /*
2 990827-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 unsigned test(unsigned one , unsigned bit)
13 unsigned val= bit & 1;
14 unsigned zero= one >> 1;
16 val++;
17 return zero + ( val>> 1 );
20 void
21 testTortureExecute (void)
23 if (test (1,0) != 0)
24 ASSERT (0);
25 if (test (1,1) != 1)
26 ASSERT (0);
27 if (test (1,65535) != 1)
28 ASSERT (0);
29 return;
31 return;