summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr70292.c
blob: 458cccde8348e217dba6a04680292d672f73f0ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile { target powerpc*-*-* ia64-*-* i?86-*-* x86_64-*-* } } */
/* { dg-options "-O1 -fno-inline -fno-dce -fschedule-insns -fselective-scheduling -fno-tree-dce" } */

void bar() {}

int t106_1mul(unsigned int x, unsigned int y) {
    int r;
    if (__builtin_mul_overflow(x, y, &r)) {
        bar();
    }
    return r;
}