1 // RUN: %clang_cc1 -std=c++20 -Wno-unused-value -fsyntax-only -verify %s
6 X(X
const&) = delete; // expected-note {{'X' has been explicitly marked deleted here}}
9 void take_by_copy(auto &...args
) {
10 [...args
= args
] {}(); // expected-error {{call to deleted constructor}}
11 // expected-note@-1 {{substituting into a lambda}}
14 void take_by_ref(auto &...args
) {
15 [&...args
= args
] {}(); // args is passed by reference and not copied.
20 take_by_copy(x
); // expected-note {{in instantiation of function template specialization}}