* src/ds390/gen.c (emitcode): don't change properties of previous lines,
[fw/sdcc] / support / regression / tests / longlit.c
index 857530c72eb21a082258b0b9b50986bf062f9893..ded0d15e5e86e4a18fae54829ef52ce892c6fddb 100644 (file)
@@ -1,10 +1,17 @@
+/* Testing arithmetics with long litterals
+ */
+
+#include <testfwk.h>
+
 #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);
 }