summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr30978.c
blob: 3329383cbe89edb8a8b3aa28d3d9cc62d03bb44f (plain)
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" } } */