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
/
longlit.c
blob
76112b6012bfeca6dfc31ffca0b072f3ddf27591
1
/* Testing arithmetic with long literals
2
*/
3
4
#include <testfwk.h>
5
6
#define OSCILLATOR 11059200
7
#define BAUD 19200L
8
9
#define T1_RELOAD_VALUE -(2*OSCILLATOR)/(32*12*BAUD)
10
11
static unsigned char
T1
=
T1_RELOAD_VALUE
;
12
13
void
14
testLongLit
(
void
)
15
{
16
ASSERT
(
T1
==
0xfd
);
17
}