projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
[fw/sdcc]
/
src
/
regression
/
string1.c
diff --git
a/src/regression/string1.c
b/src/regression/string1.c
index f240f2aaff1ef432426755b61f0ee1c9999af30b..adf3660bbd23cdda89d4159821d0195bf31a115f 100644
(file)
--- a/
src/regression/string1.c
+++ b/
src/regression/string1.c
@@
-1,21
+1,20
@@
-unsigned char success=0;
+#include "gpsim_assert.h"
unsigned char failures=0;
unsigned char failures=0;
-unsigned char dummy=0;
//unsigned bit bit1;
typedef unsigned char byte;
//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;
byte uchar0;
const byte arr[] = { 1,2,8,9,0 };
bit at 0x30 B1;
-void done()
+void
+done()
{
{
-
- dummy++;
-
+ ASSERT(MANGLE(failures) == 0);
+ PASSED();
}
void isr(void) interrupt 1 using 1
}
void isr(void) interrupt 1 using 1
@@
-29,7
+28,7
@@
void isr(void) interrupt 1 using 1
void lcd1(const unsigned char *str)
{
void lcd1(const unsigned char *str)
{
- const char *p = "hello
w
world!\r\n";
+ const char *p = "hello world!\r\n";
if(!str)
failures++;
if(!str)
failures++;
@@
-54,6
+53,5
@@
void main(void)
lcd1("str");
B1=0;
lcd1("str");
B1=0;
- success = failures;
done();
}
done();
}