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
Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git]
/
sdcc
/
support
/
regression
/
tcc
/
54_goto.c
blob
b0a3f2d9e090ca493ea62e5f90a4b0d2bb86e7a5
1
#include <stdio.h>
2
3
void
fred
(
void
)
4
{
5
printf
(
"In fred()
\n
"
);
6
goto
done
;
7
printf
(
"In middle
\n
"
);
8
done
:
9
printf
(
"At end
\n
"
);
10
}
11
12
void
joe
(
void
)
13
{
14
int
b
=
5678
;
15
16
printf
(
"In joe()
\n
"
);
17
18
{
19
int
c
=
1234
;
20
printf
(
"c = %d
\n
"
,
c
);
21
goto
outer
;
22
printf
(
"uh-oh
\n
"
);
23
}
24
25
outer
:
26
27
printf
(
"done
\n
"
);
28
}
29
30
void
henry
(
void
)
31
{
32
printf
(
"In henry()
\n
"
);
33
goto
inner
;
34
35
{
36
int
b
;
37
inner
:
38
b
=
1234
;
39
printf
(
"b = %d
\n
"
,
b
);
40
}
41
42
printf
(
"done
\n
"
);
43
}
44
45
int
main
(
void
)
46
{
47
fred
();
48
joe
();
49
henry
();
50
51
return
0
;
52
}
53
54
/* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/