2 // { dg-options "-fsyntax-only -fpermissive" }
4 int foo (int i, void *p)
6 if (i == p) // { dg-warning "ISO C.. forbids comparison between pointer and integer" }
8 else if (i != p) // { dg-warning "ISO C.. forbids comparison between pointer and integer" }
12 int bar (int i, void *p)
14 if (i < p) // { dg-warning "ISO C.. forbids comparison between pointer and integer" }
16 else if (i >= p) // { dg-warning "ISO C.. forbids comparison between pointer and integer" }
20 int baz (int i, void *p)
22 if (i <= p) // { dg-warning "ISO C.. forbids comparison between pointer and integer" }
24 else if (i > p) // { dg-warning "ISO C.. forbids comparison between pointer and integer" }