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
/
bug3366711.c
blob
8e7ec7163ae1a3a96f37c80bca45b351c43c27fa
1
/*
2
bug 3366711
3
*/
4
5
#include <testfwk.h>
6
7
void
f
(
unsigned char
c
)
8
{
9
unsigned char
__xdata
*
p
= (
unsigned char
__xdata
*)
8
;
10
p
[
3
] =
c
?
2
:
1
;
/* Old register allocator crashed in this assignment to a constant address. */
11
}
12
13
void
14
testBug
(
void
)
15
{
16
ASSERT
(
1
);
17
}
18