Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/fold4.C

raw
1 // { dg-do compile { target c++17 } }
2
3 template <class...T>
4 constexpr auto f(T... t)
5 {
6 return (... + *t);
7 }
8
9 const int i = 42, j = 24;
10 static_assert (f(&i,&j) == i+j);