re PR tree-optimization/33291 (a+=2; a+=2 not simplified to a+=4; with -O3 ...
[gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-dce-1.c
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-dce3" } */
3
4 int t() __attribute__ ((const));
5 q()
6 {
7 int i = t();
8 if (!i)
9 i = t();
10 }
11 /* There should be no IF conditionals. */
12 /* { dg-final { scan-tree-dump-times "if " 0 "dce3"} } */
13 /* { dg-final { cleanup-tree-dump "dce3" } } */