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

/* Source: Ian Lance Taylor.  */

int
foo (int i)
{
  return __builtin_abs (i) >= 0;
}