PR c++/79143
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / fold5.C
blobda6544bddba1659bd709f8a2537a39ed307799e7
1 // Test that we complain about fold-expressions in C++11 and C++14.
2 // { dg-do compile { target { c++11 && { ! c++1z } } } }
4 template <class...T>
5 constexpr int f(T... t)
7   return (... + t);             // { dg-error "fold" }