Sign in
llvm
/
llvm-test-suite
/
8e6f3ef1b8f30cca66fd1a4e35d16bdfd0c622ba
/
.
/
SingleSource
/
Regression
/
C
/
gcc-c-torture
/
execute
/
920501-4.c
blob: eaf23e1821c847275115a23ca42653c1df67e682 [
file
] [
log
] [
blame
]
/* { dg-require-effective-target label_values } */
int
x
(
int
i
)
{
static
const
void
*
j
[]
=
{&&
x
,
&&
y
,
&&
z
};
goto
*
j
[
i
];
x
:
return
2
;
y
:
return
3
;
z
:
return
5
;
}
int
main
(
void
)
{
if
(
x
(
0
)
!=
2
||
x
(
1
)
!=
3
||
x
(
2
)
!=
5
)
abort
();
exit
(
0
);
}