1 /* Copyright (C) 1999 Free Software Foundation, Inc.
2 Contributed by Nathan Sidwell 20 Jan 1999 <nathan@acm.org> */
4 /* check range combining boolean operations work */
12 /* fold-const does some clever things with range tests. Make sure
13 we get (some of) them right */
15 /* these must fail, regardless of the value of i */
16 if ((i
< 0) && (i
>= 0))
18 if ((i
> 0) && (i
<= 0))
20 if ((i
>= 0) && (i
< 0))
22 if ((i
<= 0) && (i
> 0))
25 if ((i
< N
) && (i
>= N
))
27 if ((i
> N
) && (i
<= N
))
29 if ((i
>= N
) && (i
< N
))
31 if ((i
<= N
) && (i
> N
))
34 /* these must pass, regardless of the value of i */
35 if (! ((i
< 0) || (i
>= 0)))
37 if (! ((i
> 0) || (i
<= 0)))
39 if (! ((i
>= 0) || (i
< 0)))
41 if (! ((i
<= 0) || (i
> 0)))
44 if (! ((i
< N
) || (i
>= N
)))
46 if (! ((i
> N
) || (i
<= N
)))
48 if (! ((i
>= N
) || (i
< N
)))
50 if (! ((i
<= N
) || (i
> N
)))