aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tree-ssa/pr55008.c
blob: 32af32a80440bb891eb198c45b1b121735817b42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* This used to fail to compile; see PR55008.  */
/* { dg-do compile } */
/* { dg-options "-O2 -w" } */

typedef unsigned long long T;

void f(void)
{
    int a, *p;

    T b = 6309343725;

    if(*p ? (b = 1) : 0)
        if(b - (a = b /= 0) ? : (a + b))
            while(1);
}