aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/lambda-targ14.C
blob: debb15e83f61fda38a839dd69f25f9198b102829 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/119345
// { dg-do compile { target c++20 } }

void f(auto... args) {
  [args...]<int... i> {
    (..., [args...] { i; });
  }.template operator()<0>();
}

int main() {
  f();
}