Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Woverflow-2.C
blob: 44368b66f9f739daf2b19f0ff847b98caa9bde4a [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-O2 -Woverflow" } */
#include
<limits.h>
int
foo
=
INT_MAX
+
1
;
/* { dg-warning "integer overflow" } */