OpenCores
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 801

Go to most recent revision | 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" }

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.