1 // RUN: %clang_cc1 -ast-print -std=c++17 %s | FileCheck %s
4 template<typename
... T
>
5 void test1(int i
, T
... t
) {
19 auto lambda
= [k
{i
}] {};
23 auto lambda
= [k(i
)] {};
27 auto lambda
= [k
= i
] {};
31 auto lambda
= [t
..., i
]{};
35 auto lambda
= [&t
...]{};
39 auto lambda
= [this, &t
...]{};
40 //CHECK: [this, &t...] {
43 auto lambda
= [t
..., this]{};
44 //CHECK: [t..., this] {
47 auto lambda
= [k(t
...)] {};
51 auto lambda
= [k
{t
...}] {};