Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/pr96232-1.c

raw
1 /* PR tree-optimization/96232 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 /* { dg-final { scan-tree-dump " \\+ -1;" "optimized" } } */
5 /* { dg-final { scan-tree-dump-not "~x_\[0-9]*\\\(D\\\)" "optimized" } } */
6
7 int
8 foo (_Bool x)
9 {
10 return x ? 0 : -1;
11 }