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