2 // { dg-options "-Wextra" }
6 int f1() { return ( p < 0 ? 1 : 0 ); } // { dg-warning "ordered comparison" }
7 int f2() { return ( p <= 0 ? 1 : 0 ); } // { dg-warning "ordered comparison" }
8 int f3() { return ( p > 0 ? 1 : 0 ); } // { dg-warning "ordered comparison" }
9 int f4() { return ( p >= 0 ? 1 : 0 ); } // { dg-warning "ordered comparison" }