re PR tree-optimization/33593 (tree-outof-ssa moves sources of non-call exceptions...
[gcc.git] / gcc / testsuite / g++.dg / tree-ssa / pr26406.C
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3
4 int *f(int *b)
5 {
6 int * a = new int[104];
7 *a = 1;
8 if (a == 0)
9 return b;
10 return a;
11 }
12
13 /* { dg-final { scan-tree-dump-not "if" "optimized" } } */
14 /* { dg-final { cleanup-tree-dump "optimized" } } */