aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/vce-1.c
blob: dbaf02e49ca47a7638f5dd4788a585fccf182680 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */

typedef struct { _Bool b; } A;
_Bool f(double u){
  A a;
  if(u==0)
    a.b=1;
  else
    a.b=0;
  return a.b;
}

/* { dg-final { scan-tree-dump-not "VIEW_CONVERT_EXPR" "optimized" } } */