projects
/
debian
/
cc1111
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 2.9.0
[debian/cc1111]
/
support
/
regression
/
tests
/
bug1509084.c
1
/*
2
bug 1509084
3
*/
4
5
#include <testfwk.h>
6
#include <stdbool.h>
7
8
#if !defined(__bool_true_false_are_defined)
9
#define bool unsigned char
10
#endif
11
12
unsigned char aa, bb, cc, dd, ee;
13
14
void leds_name_repaint(void)
15
{
16
unsigned char an;
17
unsigned char dg = aa;
18
bool s = 0;
19
20
for( an = 0; an < 5; an ++ )
21
{
22
s = ( (long) aa >> 1 ) > 0;
23
if( s )
24
{
25
aa += dg + 1;
26
bb += dg + 2;
27
cc += dg + 3;
28
dd += dg + 4;
29
ee += dg + 5;
30
}
31
}
32
}
33
34
void
35
testBug(void)
36
{
37
aa = 2;
38
leds_name_repaint();
39
ASSERT(aa == 17);
40
}