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