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
/
bug1816470.c
blob
25c644a675ea772cdd1794ab42ce56f1715eb31b
1
/*
2
bug 1816470
3
*/
4
5
#include <testfwk.h>
6
7
int
CalculatedConst
(
void
)
8
{
9
return
(
unsigned char
)(
0x100
-
4000000
/
307200.0
+
.5
);
10
}
11
12
void
13
testConst
(
void
)
14
{
15
ASSERT
(
CalculatedConst
() ==
0xF3
);
16
}