aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr110637-1.c
blob: 3d03b0992a4684a0141928163907e7c995cca4d2 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-optimized" } */
int f(int a)
{
        int b = (a & 1)!=0;
        return b;
}

/* This should be optimized to just return (a & 1); */
/* { dg-final { scan-tree-dump-not " == " "optimized"} } */