projects
/
fw
/
sdcc
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* device/include/pic16/adc.h,
[fw/sdcc]
/
src
/
regression
/
ptrarg.c
1
#include "gpsim_assert.h"
2
3
// Pointer to argumet tests
4
#define VALUE 0x1234
5
6
unsigned char failures = 0;
7
8
void
9
done()
10
{
11
ASSERT(MANGLE(failures) == 0);
12
PASSED();
13
}
14
15
void
16
f2(int *p1)
17
{
18
int t = *p1;
19
20
if (t != VALUE)
21
++failures;
22
23
if (*p1 != VALUE)
24
++failures;
25
}
26
27
void
28
f1(int p1)
29
{
30
f2(&p1);
31
}
32
33
void
34
main (void)
35
{
36
f1 (VALUE);
37
38
done ();
39
}