OSDN Git Service

PR c/44051
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / Wstrict-overflow-7.c
1 /* { dg-do compile } */
2 /* { dg-options "-fstrict-overflow -O2 -Wstrict-overflow" } */
3
4 /* Source: Ian Lance Taylor.  */
5
6 int
7 foo (int i)
8 {
9   return i + 10 > i; /* { dg-warning "assuming signed overflow does not occur" "correct warning" } */
10 }