struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-1408066.c
blob0052324302d481ad4482ffb67a7c6316f1fcaf77
1 /*
2 bug-136564.c0
4 loop induction
5 */
7 #include <testfwk.h>
10 void
11 testBackPatchLabel(void)
13 volatile unsigned char c0 = 0, c1 = 1;
14 unsigned char r;
16 if ( (c0 == 0)) r = 1; else r = 0; ASSERT(r == 1);
17 if ( !(c0 == 0)) r = 1; else r = 0; ASSERT(r == 0);
18 if ( !!(c0 == 0)) r = 1; else r = 0; ASSERT(r == 1);
19 if ( !!!(c0 == 0)) r = 1; else r = 0; ASSERT(r == 0);
20 if ( !!!!(c0 == 0)) r = 1; else r = 0; ASSERT(r == 1);
21 if (!!!!!(c0 == 0)) r = 1; else r = 0; ASSERT(r == 0);
23 if ( ((c0 == 0) && (c1 == 1))) r = 1; else r = 0; ASSERT(r == 1);
24 if ( !((c0 == 0) && (c1 == 1))) r = 1; else r = 0; ASSERT(r == 0);
25 if ( !!((c0 == 0) && (c1 == 1))) r = 1; else r = 0; ASSERT(r == 1);
27 if ( ( (c0 == 0) && (c1 == 1))) r = 1; else r = 0; ASSERT(r == 1);
28 if ( !( !(c0 == 1) && !(c1 == 0))) r = 1; else r = 0; ASSERT(r == 0);
29 if ( !!(!!(c0 == 0) && !!(c1 == 1))) r = 1; else r = 0; ASSERT(r == 1);