URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wextra-3.C] - Rev 693
Compare with Previous | Blame | View Log
// PR c++/45278
// { dg-options "-Wextra" }
extern void* p;
int f1() { return ( p < 0 ? 1 : 0 ); } // { dg-warning "ordered comparison" }
int f2() { return ( p <= 0 ? 1 : 0 ); } // { dg-warning "ordered comparison" }
int f3() { return ( p > 0 ? 1 : 0 ); } // { dg-warning "ordered comparison" }
int f4() { return ( p >= 0 ? 1 : 0 ); } // { dg-warning "ordered comparison" }