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-961026-1.c
blobf6c6c08aa50702a7c831cd53732310223278e502
1 /*
2 961026-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 int
12 test (int arg)
14 if (arg > 0 || arg == 0)
15 return 0;
16 return -1;
19 void
20 testTortureExecute (void)
22 if (test (0) != 0)
23 ASSERT (0);
24 if (test (-1) != -1)
25 ASSERT (0);
26 return;