aboutsummaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/lambda-call.cpp
blob: 2c5b8b9a4b176b1380ff610cf218f16ac0e910ad (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 -std=c++23 -verify -fsyntax-only %s

namespace GH96205 {

void f() {
  auto l = [](this auto& self, int) -> void { self("j"); }; // expected-error {{no matching function for call to object of type}} \
                                                            // expected-note {{no known conversion from 'const char[2]' to 'int'}}
  l(3); // expected-note {{requested here}}
}

}