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-pr36691.c
blob4b00f6555485e6ae2ba1b1d84c35635ed767f601
1 /*
2 pr36691.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 char g_5;
13 void func_1 (void)
15 for (g_5 = 9; g_5 >= 4; g_5 -= 5)
19 void
20 testTortureExecute (void)
22 #if !(defined (__GNUC__) && defined (__GNUC_MINOR__) && (__GNUC__ < 5 && __GNUC_MINOR__ < 4))
23 func_1 ();
24 if (g_5 != 0)
25 ASSERT (0);
26 return;
27 #endif