struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-2804.c
blob70f0f750e9718b9ad84aba81cbbc947c2362377a
1 /*
2 bug-2804.c
3 */
5 #include <testfwk.h>
7 #include <limits.h>
8 #include <stdbool.h>
10 volatile unsigned long long a;
12 unsigned long long f(_Bool c)
14 if(c)
15 return(a + (ULLONG_MAX - 2));
16 else
17 return(a + (ULLONG_MAX - 3));
20 void testBug(void)
22 a = 0;
23 ASSERT(f(true) != f(false));