2 /* { dg-options "-fstrict-overflow" } */
4 extern void link_error (void);
6 void test0 (int a
, int b
)
8 if ((a
< b
) != (b
> a
))
11 if ((a
- 1 < b
) != (a
<= b
))
13 if ((a
- 2 < b
) != (a
- 1 <= b
))
15 if ((a
+ -1 < b
) != (a
<= b
))
17 if ((a
+ -2 < b
) != (a
+ -1 <= b
))
20 if ((a
+ 1 > b
) != (a
>= b
))
22 if ((a
+ 2 > b
) != (a
+ 1 >= b
))
24 if ((a
- -1 > b
) != (a
>= b
))
26 if ((a
- -2 > b
) != (a
- -1 >= b
))
29 if ((a
+ 1 <= b
) != (a
< b
))
31 if ((a
+ 2 <= b
) != (a
+ 1 < b
))
33 if ((a
- -1 <= b
) != (a
< b
))
35 if ((a
- -2 <= b
) != (a
- -1 < b
))
38 if ((a
- 1 >= b
) != (a
> b
))
40 if ((a
- 2 >= b
) != (a
- 1 > b
))
42 if ((a
+ -1 >= b
) != (a
> b
))
44 if ((a
+ -2 >= b
) != (a
+ -1 > b
))