xref: /llvm-project/clang/test/SemaCXX/lambda-call.cpp (revision a139f8480f200a673e184b1a7d1907a3e16cca56)
1 // RUN: %clang_cc1 -std=c++23 -verify -fsyntax-only %s
2 
3 namespace GH96205 {
4 
f()5 void f() {
6   auto l = [](this auto& self, int) -> void { self("j"); }; // expected-error {{no matching function for call to object of type}} \
7                                                             // expected-note {{no known conversion from 'const char[2]' to 'int'}}
8   l(3); // expected-note {{requested here}}
9 }
10 
11 }
12