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-lambda5.C
blob
8c9db952f24d191546ce2ee898cdcdc683cacb46
1
// { dg-options -std=c++17 }
2
3
auto addOne = [] (int n) {
4
return n + 1;
5
};
6
constexpr int (*addOneFp)(int) = addOne;
7
static_assert(addOneFp(3) == addOne(3), "");