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-7.c
1
/* { dg-do run } */
2
/* { dg-options "-fsanitize=null -w" } */
3
/* { dg-shouldfail "ubsan" } */
4
5
int
*
6
gao
(
void
)
7
{
8
return
0
;
9
}
10
11
int
12
main
(
void
)
13
{
14
return
*
gao
();
15
}
16
17
/* { dg-output "load of null pointer of type 'int'(\n|\r\n|\r)" } */