repo.or.cz
/
sdcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Announce SDCC 4.5.0 RC2.
[sdcc.git]
/
sdcc
/
support
/
regression
/
tcc
/
07_function.c
blob
006e0a7adf1e0005eeb967520568c35ed2917e54
1
#include <stdio.h>
2
3
int
myfunc
(
int
x
)
4
{
5
return
x
*
x
;
6
}
7
8
void
vfunc
(
int
a
)
9
{
10
printf
(
"a=%d
\n
"
,
a
);
11
}
12
13
void
qfunc
()
14
{
15
printf
(
"qfunc()
\n
"
);
16
}
17
18
void
zfunc
()
19
{
20
((
void
(*)(
void
))
0
) ();
21
}
22
23
int
main
()
24
{
25
printf
(
"%d
\n
"
,
myfunc
(
3
));
26
printf
(
"%d
\n
"
,
myfunc
(
4
));
27
28
vfunc
(
1234
);
29
30
qfunc
();
31
32
return
0
;
33
}
34
35
// vim: set expandtab ts=4 sw=3 sts=3 tw=80 :