struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / longlit.c
blob76112b6012bfeca6dfc31ffca0b072f3ddf27591
1 /* Testing arithmetic with long literals
2 */
4 #include <testfwk.h>
6 #define OSCILLATOR 11059200
7 #define BAUD 19200L
9 #define T1_RELOAD_VALUE -(2*OSCILLATOR)/(32*12*BAUD)
11 static unsigned char T1=T1_RELOAD_VALUE;
13 void
14 testLongLit(void)
16 ASSERT(T1==0xfd);