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
Merge from trunk
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
null-4.c
blob
b5f03ed0b60b258217a7c3d22591832b56a56884
1
/* { dg-do run } */
2
/* { dg-options "-fsanitize=null -w" } */
3
/* { dg-shouldfail "ubsan" } */
4
/* { dg-skip-if "" { *-*-* } { "-flto" } { "" } } */
5
6
int
7
main
(
void
)
8
{
9
_Complex
double
*
p
=
0
;
10
if
(
p
[
0
])
11
return
42
;
12
return
0
;
13
}
14
15
/* { dg-output "load of null pointer of type 'complex double'(\n|\r\n|\r)" } */