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