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-pr43438.c
blobe47954dd7373405e26c2aa0ece7a09e83caa56d7
1 /*
2 pr43438.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 static unsigned char g_2 = 1;
12 static int g_9;
13 static int *l_8 = &g_9;
15 static void func_12(int p_13)
17 int * l_17 = &g_9;
18 *l_17 &= 0 < p_13;
21 void
22 testTortureExecute (void)
24 #if !(defined (__GNUC__) && defined (__GNUC_MINOR__) && (__GNUC__ < 5 && __GNUC_MINOR__ < 4))
25 unsigned char l_11 = 254;
26 *l_8 |= g_2;
27 l_11 |= *l_8;
28 func_12(l_11);
29 if (g_9 != 1)
30 ASSERT (0);
31 return;
32 #endif