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-2956.c
blob
301427dcc073f9490b719c86f53391f1810c8b34
1
/*
2
bug-2452.c
3
live-range shortening would move return before assignment to global in compound op
4
*/
5
6
#include <testfwk.h>
7
8
#pragma disable_warning 283
9
10
unsigned int
val
;
11
12
unsigned int
testadd
()
13
{
14
return
(
val
+=
1
);
15
}
16
17
void
testBug
(
void
)
18
{
19
testadd
();
20
ASSERT
(
val
==
1
);
21
}
22