blob: 70eeb1a8698e88a5680865fe775acb1c92952d0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* { dg-do run } */
extern void abort(void);
int f(int a, int b)
{
return (-1 - a) / (-b);
}
int main()
{
if (f(__INT_MAX__, 2) != __INT_MAX__/2 + 1)
abort ();
return 0;
}
|