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