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
2014-04-15 Max Ostapenko <m.ostapenko@partner.samsung.com>
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
null-4.c
blob
7c0aa2c70aad1eda76e8f9e0fbcd10be7d973dcb
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'\[^\n\r]*(\n|\r\n|\r)" } */