aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr110252-3.c
blob: c24bf1ab1e4f77581192c7c25a2174644766c467 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

unsigned int a = 1387579096U;
void sinkandcheck(unsigned b) __attribute__((noipa));
void sinkandcheck(unsigned b)
{
        if (a != b)
        __builtin_abort();
}
int main() {
    a = 1 < (~a) ? 1 : (~a);
    sinkandcheck(1);
    return 0;
}