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
* doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-lambda2.C
blob
a6b3e532649a2dab6ef9b8a41cc48b0b98b7630b
1
// Testcase from P0170R1
2
// { dg-options -std=c++17 }
3
4
constexpr int AddEleven(int n){
5
return[n]{return n+11;}();
6
}
7
static_assert(AddEleven(5)==16,"");