projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Steve Tell fixed a nested for-loop bug in the PIC Port
[fw/sdcc]
/
src
/
regression
/
b.c
diff --git
a/src/regression/b.c
b/src/regression/b.c
index cf09e5c3fe92f2fbe0a942aa9414d550c0e84914..37df0f8c5f077856ea8daa5a8d6354f7b63ba3ec 100644
(file)
--- a/
src/regression/b.c
+++ b/
src/regression/b.c
@@
-1,5
+1,7
@@
+#define __16F873
+#include "p16f873.h"
-unsigned char
succes
s = 0;
+unsigned char
failure
s = 0;
unsigned char dummy = 0;
unsigned char uchar0=0;
unsigned char dummy = 0;
unsigned char uchar0=0;
@@
-47,7
+49,7
@@
void main(void)
//incptr(&uchar0);
inc(uchar0);
if(uchar0 !=2)
//incptr(&uchar0);
inc(uchar0);
if(uchar0 !=2)
-
succes
s++;
+
failure
s++;
uchar0 = 2;
uchar1 = 1;
uchar0 = 2;
uchar1 = 1;
@@
-55,7
+57,7
@@
void main(void)
nested_call(uchar2);
if(uchar0 !=4)
nested_call(uchar2);
if(uchar0 !=4)
-
succes
s++;
+
failure
s++;
done();
}
done();
}