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