1 2 3 4 5 6 7 8 9 10 11 12 13 14
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-optimized" } */ int foo(int a) { unsigned int b = a > 0; char c = b; _Bool d = c == 0; int e = !d; return e; } /* { dg-final { scan-tree-dump "e_. = a_..D. > 0;" "optimized" } } */ /* { dg-final { cleanup-tree-dump "optimized" } } */