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
* asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
object-size-6.c
blob
0e6035d0384d476e990f32dfaa9f4dcb4381ce35
1
/* { dg-do compile } */
2
/* { dg-skip-if "" { *-*-* } { "*" } { "-O2" } } */
3
/* { dg-options "-fsanitize=object-size" } */
4
5
char
6
foo
(
void
*
v
)
7
{
8
return
*(
char
*)
v
;
9
}