OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
/cp
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-function1.C
1
// { dg-do compile }
2
// { dg-options "-std=gnu++0x" }
3
4
// From N2235
5
6
constexpr int veryabs(int x) { return x < 0 ? -x : x; }
7
8
constexpr long long_max() { return 2147483647; }
9
10
constexpr int verysquare(int x) { return x * x; }