2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / fold4.C
blobe0ee131a9bbaa706cef9f10339ed4fe6eb77f802
1 // { dg-do compile { target 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);