projects
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
0beb20cfbd0003777b132f6a700d18eacd1917da
[gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
null-3.c
1
/* { dg-do run } */
2
/* { dg-options "-fsanitize=null -w" } */
3
/* { dg-shouldfail "ubsan" } */
4
/* { dg-skip-if "" { *-*-* } { "-flto" } { "" } } */
5
6
int
7
foo
(
int
*
p
)
8
{
9
return
*
p
;
10
}
11
12
int
13
main
(
void
)
14
{
15
int
**
p
=
0
;
16
return
foo
(*
p
);
17
}
18
19
/* { dg-output "load of null pointer of type 'int \\*'(\n|\r\n|\r)" } */