Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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" }
}