Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20020127-1.c
blob07835eb6aed8b8676f9efb8f00cccaae0422cdb7
1 /*
2 20020127-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 /* This used to fail on h8300. */
13 unsigned long
14 foo (unsigned long n)
16 return (~n >> 3) & 1;
19 void
20 testTortureExecute (void)
22 if (foo (1 << 3) != 0)
23 ASSERT (0);;
25 if (foo (0) != 1)
26 ASSERT (0);;