projects
/
fw
/
sdcc
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PIC port on going development.most of addition, arrays, pointers,
[fw/sdcc]
/
src
/
regression
/
while.c
1
//#include "p16c84.h"
2
3
unsigned char success=0;
4
unsigned char failures=0;
5
unsigned char dummy=0;
6
7
bit bit0 = 0;
8
unsigned int aint0 = 0;
9
unsigned int aint1 = 0;
10
unsigned char achar0 = 0;
11
unsigned char achar1 = 0;
12
13
14
void done()
15
{
16
17
dummy++;
18
19
}
20
21
void while1(void)
22
{
23
unsigned char i=10;
24
25
do {
26
achar0++;
27
} while(--i);
28
29
if(achar0 != 10)
30
failures++;
31
32
}
33
34
35
void main(void)
36
{
37
while1();
38
39
40
success = failures;
41
done();
42
}