summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Wstrict-overflow-8.c
blob: 566729fe308874feb0315851e4f4ad1baf72b8cb (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-fstrict-overflow -O2 -Wall -Wno-strict-overflow" } */

/* Source: Ian Lance Taylor.  */

int
foo (int i)
{
  return i + 10 > i;
}