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
/
constexpr-function1.C
blob
ce4520d5574db3a4befc333200525fdafccceb9f
1
// { dg-do compile { target c++11 } }
2
3
// From N2235
4
5
constexpr int veryabs(int x) { return x < 0 ? -x : x; }
6
7
constexpr long long_max() { return 2147483647; }
8
9
constexpr int verysquare(int x) { return x * x; }