1 /* This testcase caused a floating point exception in the compiler when
2    compiled with -O2. The crash occurs when trying to simplify division
3    and modulo operations.  */
4 
5 #include <limits.h>
6 
7 extern void bar (int);
8 
foo()9 void foo ()
10 {
11   int a = INT_MIN;
12   int b = -1;
13   bar (a / b);
14   bar (a % b);
15 }
16