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
/
bug2435941.c
1
/*
2
bug 2435941
3
*/
4
5
#include <testfwk.h>
6
#include <stdint.h>
7
8
uint32_t sleep_timer_get(void)
9
{
10
return 0x12345678;
11
}
12
13
int32_t remaining;
14
uint32_t updated;
15
uint32_t now;
16
17
// no need to call this, it generates compiler error:
18
// error 9: FATAL Compiler Internal Error
19
static void do_test(void) reentrant
20
{
21
while (1)
22
{
23
now = sleep_timer_get();
24
25
remaining -= (now - updated) & 0xFF;
26
updated = now;
27
}
28
}
29
30
void
31
testBug(void)
32
{
33
ASSERT(1);
34
}