repo.or.cz
/
sdcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
struct / union in initializer, RFE #901.
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
bug-3065.c
blob
e4289d891e37a2f9da16fa3feb3b528c7177a09f
1
/* bug 3065
2
pdk backend generating invalid asm for some bitwise and on __sfr-
3
*/
4
#include <testfwk.h>
5
6
#if defined(__SDCC_pdk13) || defined(__SDCC_pdk14) || defined(__SDCC_pdk15)
7
8
__sfr
__at
(
0x10
)
_pa
;
9
#define PA _pa
10
11
unsigned char
b
=
0
;
12
13
void
f
(
void
)
14
{
15
PA
&= (
unsigned char
)~(
1
<<
b
);
16
}
17
#endif
18
19
void
20
testBug
(
void
)
21
{
22
}
23