git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1996
4a8a32a2-be11-0410-ad9d-
d568d2c75423
--- /dev/null
+unsigned char success=0;
+unsigned char failures=0;
+unsigned char dummy=0;
+unsigned bit bit1;
+
+typedef unsigned char byte;
+
+byte d2;
+
+unsigned char uchar0 = 0xa5;
+
+data at 0xa0 unsigned char uc_bank1_temp=0x42;
+data at 0xa2 unsigned int ui_bank1_temp=0;
+
+void done()
+{
+
+ dummy++;
+
+}
+
+void main(void)
+{
+ dummy = 0;
+ ui_bank1_temp = 0;
+ uc_bank1_temp = 0;
+
+ bit1 = 0;
+
+ uchar0 = (uchar0<<4) | (uchar0>>4);
+
+ if(uchar0 > 7) {
+ dummy = 8;
+ uc_bank1_temp = failures;
+ }
+
+ if(uc_bank1_temp > 3)
+ bit1 = 1;
+
+ success = failures;
+ done();
+}
--- /dev/null
+unsigned char success=0;
+unsigned char failures=0;
+unsigned char dummy=0;
+//unsigned bit bit1;
+
+typedef unsigned char byte;
+data at 0x06 unsigned char PORTB;
+
+byte uchar0;
+const byte arr[] = { 1,2,8,9,0 };
+
+bit at 0x30 B1;
+
+void done()
+{
+
+ dummy++;
+
+}
+
+void isr(void) interrupt 1 using 1
+{
+
+ if(arr[3]!=9)
+ failures++;
+ PORTB = 7;
+ B1=1;
+}
+
+void lcd1(const unsigned char *str)
+{
+ if(str && str[2] != 'r')
+ failures++;
+
+ if(arr[3]!=9)
+ failures++;
+}
+
+void main(void)
+{
+ dummy = 0;
+
+ lcd1("str");
+ B1=0;
+ success = failures;
+ done();
+}