repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Disable gnat.dg/socket1.adb on hppa*-*-hpux*.
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
null-7.c
blob
19c21da45626660ad587c1e1fbbfbd1d62b9f909
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'" } */