Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
pr59667.c
blob: d5346611026734cabdeece86647e16041829c3bd [
file
] [
log
] [
blame
]
/* { dg-do run } */
/* { dg-options "-fsanitize=undefined" } */
/* { dg-shouldfail "ubsan" } */
int
main
(
void
)
{
unsigned
int
len
=
1
;
float
(*
P
)[
len
][
len
]
=
0
;
(*
P
)[
0
][
0
]
=
1
;
return
0
;
}
/* { dg-output "store to null pointer of type 'float'" } */