Imported Upstream version 2.9.0
[debian/cc1111] / 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 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 }