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
Fix all tests that fail with -sanitize=return.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
tree-ssa
/
nonzero-1.C
blob
e3c5ece5d9640049529a7a819541d86c66c431fa
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-ccp1 -fdelete-null-pointer-checks" } */
3
/* { dg-skip-if "" keeps_null_pointer_checks } */
4
5
inline void t()
6
{
7
}
8
int m()
9
{
10
void *q = (void *)&t;
11
return q != 0;
12
}
13
/* { dg-final { scan-tree-dump "return 1" "ccp1"} } */