repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR ipa/61602
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
stackalign
/
non-local-goto-3.c
blob
f18366f9c0f0efb06303b6b444eda7e7f8cf9743
1
/* { dg-do run } */
2
/* { dg-require-effective-target nonlocal_goto } */
3
4
#ifndef NO_TRAMPOLINES
5
extern
void
abort
(
void
);
6
7
int
x
(
int
a
,
int
b
)
8
{
9
__label__ xlab
;
10
11
void
y
(
int
b
)
12
{
13
switch
(
b
)
14
{
15
case
1
:
goto
xlab
;
16
case
2
:
goto
xlab
;
17
}
18
}
19
20
a
=
a
+
2
;
21
y
(
b
);
22
23
xlab
:
24
return
a
;
25
}
26
27
int
main
()
28
{
29
int
i
,
j
;
30
31
for
(
j
=
1
;
j
<=
2
; ++
j
)
32
for
(
i
=
1
;
i
<=
2
; ++
i
)
33
{
34
int
a
=
x
(
j
,
i
);
35
if
(
a
!=
2
+
j
)
36
abort
();
37
}
38
39
return
0
;
40
}
41
#else
42
int
main
() {
return
0
; }
43
#endif