Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
refs/heads/factory-ryu-6486.B
/
.
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
null-3.c
blob: f58562c63b8c8f34ec3071dee1d9a883abb33844 [
file
] [
log
] [
blame
]
/* { dg-do run } */
/* { dg-options "-fsanitize=null -w" } */
/* { dg-shouldfail "ubsan" } */
int
foo
(
int
*
p
)
{
return
*
p
;
}
int
main
(
void
)
{
int
**
p
=
0
;
return
foo
(*
p
);
}
/* { dg-output "load of null pointer of type 'int \\*'(\n|\r\n|\r)" } */