X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2Fregression%2Ftests%2Flonglit.c;h=ded0d15e5e86e4a18fae54829ef52ce892c6fddb;hb=334d46c82420b40682d224b62f2930eb7d77af75;hp=857530c72eb21a082258b0b9b50986bf062f9893;hpb=262e45f31978203541ecd56d940612f0e61d0c0e;p=fw%2Fsdcc diff --git a/support/regression/tests/longlit.c b/support/regression/tests/longlit.c index 857530c7..ded0d15e 100644 --- a/support/regression/tests/longlit.c +++ b/support/regression/tests/longlit.c @@ -1,10 +1,17 @@ +/* Testing arithmetics with long litterals + */ + +#include + #define OSCILLATOR 11059200 -#define BAUD 19200 +#define BAUD 19200L #define T1_RELOAD_VALUE -(2*OSCILLATOR)/(32*12*BAUD) -char T1=T1_RELOAD_VALUE; +static unsigned char T1=T1_RELOAD_VALUE; -void test (void) { +void +testLongLit(void) +{ ASSERT(T1==0xfd); }