Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
null-8.c
blob: 73bef75c377af2abd8120b4c6756b6fad72449e0 [
file
] [
log
] [
blame
]
/* { dg-do run } */
/* { dg-options "-fsanitize=null -w" } */
/* { dg-shouldfail "ubsan" } */
struct
S
{
int
i
;
};
int
main
(
void
)
{
struct
S
*
s
=
0
;
return
s
->
i
;
}
/* { dg-output "member access within null pointer of type 'struct S'" } */