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 sanitizer/64121
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
pr64121.c
blob
614d72a22afd88d1256d2f499dc52b06a6c2b371
1
/* PR sanitizer/64121 */
2
/* { dg-do compile } */
3
/* { dg-options "-fsanitize=undefined -Wno-pointer-arith" } */
4
5
extern
int
tab
[
16
];
6
7
void
8
execute
(
int
*
ip
,
int
x
)
9
{
10
int
*
xp
=
tab
;
11
base
:
12
if
(
x
)
13
return
;
14
*
xp
++ = *
ip
;
15
goto
*(&&
base
+ *
ip
);
16
}