aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr105835.c
blob: 354c81c672073478f0cf60a1aa018d0c410cc2db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-optimized" } */

void foo();

static int b;

static short a(short c, unsigned short d) { return c - d; }

int main() {
    int e = -(0 < b);
    if (a(1, e))
        b = 0;
    else
        foo();
}

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