projects
/
debian
/
cc1111
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
more tweaks to make this work as package cc1111
[debian/cc1111]
/
support
/
regression
/
tests
/
scott-for.c
1
/*
2
*/
3
#include <testfwk.h>
4
5
unsigned int aint0 = 0;
6
unsigned int aint1 = 0;
7
unsigned char achar0 = 0;
8
unsigned char achar1 = 0;
9
10
unsigned char call3(void);
11
12
void for1(void)
13
{
14
unsigned char i=0;
15
16
for(i=0; i<10; i++)
17
achar0++;
18
19
ASSERT(!(achar0 != 10));
20
21
}
22
23
void for2(void)
24
{
25
unsigned char i=0;
26
27
for(i=0; i<10; i++)
28
achar0++;
29
30
ASSERT(!(i < 10));
31
32
}
33
34
void
35
testFor(void)
36
{
37
for1();
38
for2();
39
}