Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
null-6.c
blob: 12397936354b2f94efb7e96e97a57ddeebabb4b8 [
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'" } */