Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
pr64121.c
blob: 614d72a22afd88d1256d2f499dc52b06a6c2b371 [
file
] [
log
] [
blame
]
/* PR sanitizer/64121 */
/* { dg-do compile } */
/* { dg-options "-fsanitize=undefined -Wno-pointer-arith" } */
extern
int
tab
[
16
];
void
execute
(
int
*
ip
,
int
x
)
{
int
*
xp
=
tab
;
base
:
if
(
x
)
return
;
*
xp
++
=
*
ip
;
goto
*(&&
base
+
*
ip
);
}