Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-function1.C
blob: ce4520d5574db3a4befc333200525fdafccceb9f [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
// From N2235
constexpr
int
veryabs
(
int
x
)
{
return
x
<
0
?
-
x
:
x
;
}
constexpr
long
long_max
()
{
return
2147483647
;
}
constexpr
int
verysquare
(
int
x
)
{
return
x
*
x
;
}