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-11.c
blob
6aefaab00340d6bbca7f60f52bbf533b1b365458
1
/* { dg-do run } */
2
/* { dg-options "-fsanitize=null -w" } */
3
/* { dg-shouldfail "ubsan" } */
4
5
struct
S
{
6
int
i
;
7
};
8
9
int
10
main
(
void
)
11
{
12
struct
S
**
s
=
0
;
13
return
(*
s
)->
i
;
14
}
15
16
/* { dg-output "load of null pointer of type 'struct S \\*'\[^\n\r]*(\n|\r\n|\r)" } */