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-951115-1.c
blob1e56559479a3ab85b5ebe483e3d41fc5e194e34a
1 /*
2 951115-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 var = 0;
13 void g ()
15 var = 1;
18 void f ()
20 int f2 = 0;
22 if (f2 == 0)
25 g ();
28 void
29 testTortureExecute (void)
31 f ();
32 if (var != 1)
33 ASSERT (0);
34 return;