view gcc/testsuite/gcc.dg/pr70292.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { 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;
}