struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-3065.c
blobe4289d891e37a2f9da16fa3feb3b528c7177a09f
1 /* bug 3065
2 pdk backend generating invalid asm for some bitwise and on __sfr-
3 */
4 #include <testfwk.h>
6 #if defined(__SDCC_pdk13) || defined(__SDCC_pdk14) || defined(__SDCC_pdk15)
8 __sfr __at(0x10) _pa;
9 #define PA _pa
11 unsigned char b = 0;
13 void f(void)
15 PA &= (unsigned char)~(1<<b);
17 #endif
19 void
20 testBug(void)