1 /* { dg-options "-fshow-column -Wall -Wfloat-equal -pedantic" } */
16 if (a
== b
) /* { dg-warning "9:comparing floating-point with" } */
19 if (p
< q
) /* { dg-warning "9:comparison of distinct pointer types" } */
22 if (&p
== 0) /* { dg-warning "10:comparison will always evaluate as 'false'" } */
25 if (p
== 4) /* { dg-warning "9:comparison between pointer and integer" } */
28 if (p
< 0) /* { dg-warning "9:ordered comparison of pointer with" } */
31 -q
; /* { dg-error "3:wrong type argument to unary" } */
33 ~q
; /* { dg-error "3:wrong type argument to bit" } */
35 ++*q
; /* { dg-error "3:wrong type argument to increment" } */
37 i
= j
/ 0; /* { dg-warning "9:division by zero" } */
39 i
/= 0; /* { dg-warning "5:division by zero" } */