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