1 /*
2    990827-1.c from the execute part of the gcc torture suite.
3  */
4 
5 #include <testfwk.h>
6 
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
10 
test(unsigned one,unsigned bit)11 unsigned test(unsigned one , unsigned  bit)
12 {
13     unsigned val=  bit & 1;
14     unsigned zero= one >> 1;
15 
16     val++;
17     return zero + ( val>> 1 );
18 }
19 
20 void
testTortureExecute(void)21 testTortureExecute (void)
22 {
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;
30 
31   return;
32 }
33 
34