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
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
null-5.c
blob
f7f6b86d31760a42393753910496748a5cf3a1df
1
/* { dg-do run } */
2
/* { dg-options "-fsanitize=null -w" } */
3
/* { dg-shouldfail "ubsan" } */
4
5
typedef volatile
const
_Complex
float
*
T
;
6
7
int
8
main
(
void
)
9
{
10
T t
=
0
;
11
if
(*
t
)
12
return
42
;
13
return
0
;
14
}
15
16
/* { dg-output "load of null pointer of type 'volatile const complex float'\[^\n\r]*(\n|\r\n|\r)" } */