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-pr89826.c
blob91a912efea0a8d2d79342a02d2cb915cd67eadef
1 /*
2 pr89826.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 typedef unsigned int u32;
8 typedef unsigned long long u64;
9 u64 a;
10 u32 b;
12 u64
13 foo (u32 d)
15 a -= d ? 0 : ~a;
16 return a + b;
19 void
20 testTortureExecute (void)
22 u64 x = foo (2);
23 if (x != 0)
24 ASSERT (0);
25 return;