Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
refs/heads/factory-ryu-6486.B
/
.
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
null-1.c
blob: 08d547f3aaebf7113321c9b9d7d843baad06fae2 [
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'(\n|\r\n|\r)" } */