aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/pr106474.C
blob: 6cd37a20643161365cbc6975d8d39fe98271d16f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-evrp " } */

void foo();
static void __attribute__ ((noinline)) DCEMarker0_() {foo ();}

void f(bool s, bool c) {
    if ((!c == !s) && !c) {
        if (s) {
            DCEMarker0_();
        }
    }
}

// With equivalences, vrp should be able to remove all IFs.
/* { dg-final { scan-tree-dump-not "goto" "evrp" } } */