summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr31710.c
blob: 0c8562dbcde057b50a0832b0786d0533f42eda06 (plain)
1
2
3
4
5
6
typedef short SHORT;
struct v { SHORT i; };
void f(struct v *pin, struct v *pout) {
        if (pin->i == (-0x7fff)-1)
            pout->i = -pin->i;
}