gbdk-releases/sdcc/support/regression/tests/longor.c
2015-01-10 16:25:09 +01:00

19 lines
229 B
C

/** Test long OR.
Was a bug where 1 was turned into 0x10000 on PPC.
*/
#include <testfwk.h>
void
testLongOR(void)
{
volatile unsigned long l;
l = 0;
l |= 1L;
ASSERT(l == 1);
l = 0;
l |= 1;
ASSERT(l == 1);
}