Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-lambda2.C
blob: 3cf9d03e741a4bb8f8e7bd8617f761a70f3207be [
file
] [
log
] [
blame
]
// Testcase from P0170R1
// { dg-do compile { target c++17 } }
constexpr
int
AddEleven
(
int
n
){
return
[
n
]{
return
n
+
11
;}();
}
static_assert
(
AddEleven
(
5
)==
16
,
""
);