Imported Upstream version 2.9.0
[debian/cc1111] / support / regression / tests / longor.c
1 /** Test long OR.
2     Was a bug where 1 was turned into 0x10000 on PPC.
3  */
4 #include <testfwk.h>
5
6 void
7 testLongOR(void)
8 {
9   volatile unsigned long l;
10
11   l = 0;
12   l |= 1L;
13   ASSERT(l == 1);
14
15   l = 0;
16   l |= 1;
17   ASSERT(l == 1);
18 }