projects
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
re PR sanitizer/60535 (Link failure with -flto and -fsanitize=undefined)
[gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
null-10.c
1
/* { dg-do run } */
2
/* { dg-options "-fsanitize=null -w" } */
3
/* { dg-shouldfail "ubsan" } */
4
5
int
6
main
(
void
)
7
{
8
short
*
p
=
0
, *
u
;
9
*(
u
+ *
p
) =
23
;
10
return
0
;
11
}
12
13
/* { dg-output "load of null pointer of type 'short int'(\n|\r\n|\r)" } */