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
2018-04-30 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
unreachable.c
blob
8a13c60c5c158b284cfa4c11a7dd1c4a670c6109
1
/* { dg-do compile } */
2
/* { dg-options "-O1 -fdump-tree-optimized -fdelete-null-pointer-checks" } */
3
static void
bad_boy
()
4
{
5
}
6
int
7
main
()
8
{
9
void
*
t
=(
void
*)
bad_boy
;
10
if
(!
t
)
11
return
1
;
12
return
0
;
13
}
14
/* { dg-final { scan-tree-dump-not "bad_boy" "optimized" { target { ! keeps_null_pointer_checks } } } } */