repo.or.cz
/
tinycc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Makefile: fix "allow CONFIG_LDDIR=lib64 configuration"
[tinycc.git]
/
tests2
/
51_static.c
blob
d6c0917cfe3c54495fdbda1e52a069870893548d
1
#include <stdio.h>
2
3
static int
fred
=
1234
;
4
static int
joe
;
5
6
void
henry
()
7
{
8
static int
fred
=
4567
;
9
10
printf
(
"%d
\n
"
,
fred
);
11
fred
++;
12
}
13
14
int
main
()
15
{
16
printf
(
"%d
\n
"
,
fred
);
17
henry
();
18
henry
();
19
henry
();
20
henry
();
21
printf
(
"%d
\n
"
,
fred
);
22
fred
=
8901
;
23
joe
=
2345
;
24
printf
(
"%d
\n
"
,
fred
);
25
printf
(
"%d
\n
"
,
joe
);
26
27
return
0
;
28
}
29
30
/* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/