struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-3355.c
blobcbd77936747e74fa24c00d5110ce2eb3fbc9e048
1 /* bug-3255.c
2 A bug in comparisons on mcs51.
3 */
5 #include <testfwk.h>
7 volatile unsigned char ua, ub;
9 int f(void)
11 if((ua <= ub) == 1) // No bug without the == 1 here.
12 return 1;
13 return 0;
16 void testBug(void)
18 #if !defined(__SDCC_mcs51) && !defined(__SDCC_ds390) // Enable when bug is fixed.
19 ua = 1;
20 ub = 2;
21 ASSERT (f());
22 #endif