1 /* Test warning for ordered comparison pointer with null pointer constant. */
2 /* Test with -pedantic-errors. */
3 /* { dg-do compile } */
4 /* { dg-options "-pedantic-errors" } */
9 if ( z
>= 0 ) /* { dg-error "ordered comparison of pointer with" } */
11 if ( 0 >= z
) /* { dg-error "ordered comparison of pointer with" } */
17 if (z
>= (void*)0) /* { dg-error "distinct pointer types lacks a cast" } */
19 if ((void*)0 >=z
) /* { dg-error "distinct pointer types lacks a cast" } */