Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
warn-ovl1.C
blob: e340de4179df6f0ae9d1239b90612481a4c69382 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
// { dg-options "-O2 -Woverflow" }
#include
<climits>
constexpr
int
f
()
{
return
INT_MIN
;
}
int
main
()
{
return
-
f
();
// { dg-warning "overflow" }
}