PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / fold4.C
blob2365d50c3c482955be6e5747ea340a060ace18b7
1 // { dg-options -std=c++17 }
3 template <class...T>
4 constexpr auto f(T... t)
6   return (... + *t);
9 const int i = 42, j = 24;
10 static_assert (f(&i,&j) == i+j);