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-20000715-2.c
blob6dcc174431c706f9c053f7a223a34fa1f07908a7
1 /*
2 20000715-2.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 int foo(unsigned int a)
13 return ((unsigned char)(a + 1)) * 4;
16 void
17 testTortureExecute (void)
19 if (foo((unsigned char)~0))
20 ASSERT (0);
21 return;