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
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
warn-ovl1.C
blob
e340de4179df6f0ae9d1239b90612481a4c69382
1
// { dg-do compile { target c++11 } }
2
// { dg-options "-O2 -Woverflow" }
3
4
#include <climits>
5
6
constexpr int f() { return INT_MIN; }
7
8
int main()
9
{
10
return -f(); // { dg-warning "overflow" }
11
}
12