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
/
bug1551947.c
blob
cf80edc97acaee51d80d066c4532dd3ebc61883c
1
/*
2
bug1551947.c
3
*/
4
5
#include <testfwk.h>
6
7
__xdata
float
z
;
8
__xdata
float
x
=
1.0
;
9
10
void
11
testBug
(
void
)
12
{
13
#if !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15)
// Lack of memory
14
z
=
x
*
x
;
15
ASSERT
(
z
==
1.0
);
16
#endif
17
}
18