1 /* { dg-do compile } */ 2 /* { dg-options "-O2 -fdump-tree-optimized -fdelete-null-pointer-checks" } */ 3 /* { dg-skip-if "" keeps_null_pointer_checks } */ 4 f(int * b)5int *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" } } */ 15