Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/compile/20010404-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* This testcase caused a floating point exception in the compiler when compiled with -O2. The crash occurs when trying to simplify division and modulo operations. */ #include <limits.h> extern void bar (int); void foo () { int a = INT_MIN; int b = -1; bar (a / b); bar (a % b); }