(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
warn/
Wextra-3.C
// PR c++/45278

extern void* p;

int f1() { return ( p <  0 ? 1 : 0 ); } // { dg-error "23:ordered comparison" }
int f2() { return ( p <= 0 ? 1 : 0 ); } // { dg-error "23:ordered comparison" }
int f3() { return ( p >  0 ? 1 : 0 ); } // { dg-error "23:ordered comparison" }
int f4() { return ( p >= 0 ? 1 : 0 ); } // { dg-error "23:ordered comparison" }