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
2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
null-4.c
blob
09018164fc5b24696da6bd5d53b4ac692cb3a8ab
1
/* { dg-do run } */
2
/* { dg-options "-fsanitize=null -w" } */
3
/* { dg-shouldfail "ubsan" } */
4
5
int
6
main
(
void
)
7
{
8
_Complex
double
*
p
=
0
;
9
if
(
p
[
0
])
10
return
42
;
11
return
0
;
12
}
13
14
/* { dg-output "load of null pointer of type 'complex double'" } */