struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / longor.c
blob4e30cc5ff463a7b98ac25cc287de02459246d439
1 /** Test long OR.
2 Was a bug where 1 was turned into 0x10000 on PPC.
3 */
4 #include <testfwk.h>
6 void
7 testLongOR(void)
9 volatile unsigned long l;
11 l = 0;
12 l |= 1L;
13 ASSERT(l == 1);
15 l = 0;
16 l |= 1;
17 ASSERT(l == 1);