stdio.h not needed
[fw/sdcc] / support / regression / tests / longlit.c
1 /* Testing arithmetics with long litterals
2  */
3
4 #include <testfwk.h>
5
6 #define OSCILLATOR 11059200
7 #define BAUD 19200
8
9 #define T1_RELOAD_VALUE -(2*OSCILLATOR)/(32*12*BAUD)
10
11 unsigned char T1=T1_RELOAD_VALUE;
12
13 void test (void) {
14   ASSERT(T1==0xfd);
15 }