repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
Wstrict-overflow-9.c
blob
425a121d5c0aa06ffe1064916958ad86ffb63fc0
1
/* { dg-do compile } */
2
/* { dg-options "-fstrict-overflow -O2 -Wstrict-overflow=2" } */
3
4
/* Source: Ian Lance Taylor. */
5
6
int
7
foo
(
int
i
)
8
{
9
return
__builtin_abs
(
i
) >=
0
;
/* { dg-warning "assuming signed overflow does not occur" "correct warning" } */
10
}