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-930622-1.c
blob3e6011c0c47ede9b62188ef3dd12cb698d77ba3b
1 /*
2 930622-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #pragma disable_warning 85
10 #endif
12 int a = 1, b;
14 int g () { return 0; }
15 void h (int x) {}
17 int f ()
19 if (g () == -1)
20 return 0;
21 a = g ();
22 if (b >= 1)
23 h (a);
24 return 0;
27 void
28 testTortureExecute (void)
30 f ();
31 if (a != 0)
32 ASSERT (0);
33 return;