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