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-3320.c
blob
1b34891ad9011fd1987a972af80bb2765451555a
1
/*
2
bug-3320.c
3
A variable scope issue resulting in an invalid compile-time error message.
4
*/
5
6
#include <testfwk.h>
7
8
char
c
;
9
10
void
foo
()
11
{
12
char
*
dest
= &
c
;
13
{
14
*
dest
++ |=
1
;
15
}
16
}
17
18
void
testBug
(
void
)
19
{
20
c
=
42
;
21
foo
();
22
ASSERT
(
c
==
43
);
23
}
24