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

void sink(...);
template <int... args> void f()
{
  sink ([] <int T> (int...) { return 1; }	// { dg-warning "omission of ',' before varargs '...' is deprecated" "" { target c++26 } }
        .operator()<args>(args...)...); // { dg-warning "-Wmissing-template-keyword" }
} // { dg-prune-output {expected '\)'} }

int main()
{
  f<1,2,3>();
}