[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / Wstrict-overflow-9.c
blob425a121d5c0aa06ffe1064916958ad86ffb63fc0
1 /* { dg-do compile } */
2 /* { dg-options "-fstrict-overflow -O2 -Wstrict-overflow=2" } */
4 /* Source: Ian Lance Taylor. */
6 int
7 foo (int i)
9 return __builtin_abs (i) >= 0; /* { dg-warning "assuming signed overflow does not occur" "correct warning" } */