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
PR tree-optimization/67955
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
tree-ssa
/
pr26406.C
blob
72f693135be3dea4974037f681fc18447bb4f463
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-optimized -fdelete-null-pointer-checks" } */
3
/* { dg-skip-if "" keeps_null_pointer_checks } */
4
5
int *f(int *b)
6
{
7
int * a = new int[104];
8
*a = 1;
9
if (a == 0)
10
return b;
11
return a;
12
}
13
14
/* { dg-final { scan-tree-dump-not "if" "optimized" } } */