☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
fold5.C
☽
☼
gcc/testsuite/g++.dg/cpp1z/fold5.C
code
plain
raw
1
// Test that we complain about fold-expressions in C++11 and C++14.
2
// { dg-do compile { target { c++11 && { ! c++17 } } } }
3
4
template <class...T>
5
constexpr int f(T... t)
6
{
7
return (... + t); // { dg-error "fold" }
8
}