URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [Wstrict-overflow-22.c] - Rev 298
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" } */ }