Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/neg-cast-3.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-forwprop1 -fdump-tree-optimized" } */
3 /* PR tree-optimization/107137 */
4
5 unsigned f(_Bool a)
6 {
7 int t = a;
8 t = -t;
9 return t;
10 }
11
12 /* There should be no cast to int at all. */
13 /* { dg-final { scan-tree-dump-not "\\\(int\\\)" "forwprop1" } } */