URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [Wstrict-overflow-22.c] - Rev 801
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-fstrict-overflow -O2 -Wstrict-overflow=3" } */ /* Source: Ian Lance Taylor. Based on strict-overflow-6.c. */ /* We can only simplify the conditional when using strict overflow semantics. */ int foo (char* p) { return p + 1000 < p; /* { dg-warning "assuming pointer wraparound does not occur" "correct warning" } */ }
Go to most recent revision | Compare with Previous | Blame | View Log