1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized -fno-tree-dce" } */
3 
foo(int a)4 int foo (int a)
5 {
6   int c = 0;
7   if (a != 0)
8     {
9       __builtin_popcount (a);
10       c = 2;
11     }
12   return c;
13 }
14 
15 /* { dg-final { scan-tree-dump-times "if " 1 "optimized" } } */
16