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-3025.c
blob
9cfbfff4d2d5aefeaa1411c7dd701b71085f80c0
1
/*
2
bug-3025.c. (exclusive) or on a bit-field triggered an assertion in AST processing.
3
*/
4
5
#include <testfwk.h>
6
7
struct
8
{
9
int
x
:
1
;
10
}
c
;
11
12
void
f
()
13
{
14
c
.
x
^ -
1
;
15
}
16
17
void
g
()
18
{
19
c
.
x
| -
1
;
20
}
21
22
void
23
testBug
(
void
)
24
{
25
f
();
26
g
();
27
return
;
28
}
29