struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / nadd.c
blob65c0c6140954ebfbdd1e895ab9097f332ed7cdc0
1 /** Test use of pdk15 nadd instructions.
3 */
4 #include <testfwk.h>
6 unsigned char a, b, c;
8 void f(void)
10 c = b - (a & 0x5f);
13 void g(void)
15 c = (a & 0x5f) - c;
18 void testNadd(void)
20 a = 1;
21 b = 24;
22 f();
23 ASSERT(c == 23);
25 a = 24;
26 g();
27 ASSERT(c == 1);