[clang] [Sema] Fix parameter index checks on explicit object member functions (PR #165586)
Vladimir Vuksanovic via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 30 05:58:41 PDT 2025
================
@@ -1,11 +1,16 @@
-// RUN: %clang_cc1 %s -verify -fsyntax-only
+// RUN: %clang_cc1 %s -std=c++23 -verify -fsyntax-only
// expected-no-diagnostics
class C_in_class {
#include "../Sema/attr-callback.c"
};
+class ExplicitParameterObject {
+ __attribute__((callback(2, 1))) void explicit_this_idx(this ExplicitParameterObject* self, void (*callback)(ExplicitParameterObject*));
+ __attribute__((callback(2, self))) void explicit_this_identifier(this ExplicitParameterObject* self, void (*callback)(ExplicitParameterObject*));
----------------
vvuksanovic wrote:
Done.
https://github.com/llvm/llvm-project/pull/165586
More information about the cfe-commits
mailing list