Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
fold4.C
blob: e0ee131a9bbaa706cef9f10339ed4fe6eb77f802 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++17 } }
template
<
class
...
T
>
constexpr
auto
f
(
T
...
t
)
{
return
(...
+
*
t
);
}
const
int
i
=
42
,
j
=
24
;
static_assert
(
f
(&
i
,&
j
)
==
i
+
j
);