runtime: copy more of scheduler from Go 1.7 runtime
[official-gcc.git] / gcc / testsuite / g++.dg / tree-ssa / pr26406.C
blob72f693135be3dea4974037f681fc18447bb4f463
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized -fdelete-null-pointer-checks" } */
3 /* { dg-skip-if "" keeps_null_pointer_checks } */
5 int *f(int *b)
7   int * a = new int[104];
8   *a = 1;
9   if (a == 0)
10     return b;
11   return a;
14 /* { dg-final { scan-tree-dump-not "if" "optimized" } } */