Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
null-7.c
blob: 19c21da45626660ad587c1e1fbbfbd1d62b9f909 [
file
] [
log
] [
blame
]
/* { dg-do run } */
/* { dg-options "-fsanitize=null -w" } */
/* { dg-shouldfail "ubsan" } */
int
*
gao
(
void
)
{
return
0
;
}
int
main
(
void
)
{
return
*
gao
();
}
/* { dg-output "load of null pointer of type 'int'" } */