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

/* This should be optimized to just return 0; */
/* { dg-final { scan-tree-dump-not " == " "optimized"} } */
/* { dg-final { scan-tree-dump "return 0;" "optimized"} } */