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
elf: Support STB_LOCAL dynamic symbols
[tinycc.git]
/
tests
/
tests2
/
47_switch_return.c
blob
1ec7924c47ae34ae056b438e2a453087c4824801
1
#include <stdio.h>
2
3
void
fred
(
int
x
)
4
{
5
switch
(
x
)
6
{
7
case
1
:
printf
(
"1
\n
"
);
return
;
8
case
2
:
printf
(
"2
\n
"
);
break
;
9
case
3
:
printf
(
"3
\n
"
);
return
;
10
}
11
12
printf
(
"out
\n
"
);
13
}
14
15
int
main
()
16
{
17
fred
(
1
);
18
fred
(
2
);
19
fred
(
3
);
20
21
return
0
;
22
}
23
24
/* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/