Sign in
android
/
toolchain
/
gcc
/
donut
/
.
/
gcc-4.3.1
/
gcc
/
testsuite
/
gcc.dg
/
Wstrict-overflow-7.c
blob: 5bf7b6005ca00daf5419180e21c20cb4c7691af3 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-fstrict-overflow -O2 -Wstrict-overflow" } */
/* Source: Ian Lance Taylor. */
int
foo
(
int
i
)
{
return
i
+
10
>
i
;
/* { dg-warning "assuming signed overflow does not occur" "correct warning" } */
}