projects
/
fw
/
sdcc
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added tests
[fw/sdcc]
/
support
/
regression
/
tests
/
stacks.c
1
/*
2
size: 126, 127, 128, 129
3
*/
4
#include <testfwk.h>
5
6
void
7
spoil(char a)
8
{
9
UNUSED(a);
10
}
11
12
void
13
spoilPtr(char *p)
14
{
15
UNUSED(p);
16
}
17
18
void
19
testStack(void)
20
{
21
volatile char above;
22
volatile char above2;
23
volatile char ac[{size}];
24
volatile char below;
25
volatile char * volatile p;
26
27
spoil(ac[0]);
28
spoilPtr(&above);
29
spoilPtr(&below);
30
31
p = &above2;
32
spoilPtr(p);
33
}