Debian Codegraph @

clang/test/SemaCXX/attr-callback-broken.cpp

raw
1 // RUN: %clang_cc1 %s -std=c++23 -verify -fsyntax-only
2
3 class C_in_class {
4 #define HAS_THIS
5 #include "../Sema/attr-callback-broken.c"
6 #undef HAS_THIS
7 };
8
9 class ExplicitParameterObject {
10 __attribute__((callback(2, 0))) void explicit_this_idx(this ExplicitParameterObject* self, void (*callback)(ExplicitParameterObject*)); // expected-error {{'callback' argument at position 2 references unavailable implicit 'this'}}
11 __attribute__((callback(2, this))) void explicit_this_identifier(this ExplicitParameterObject* self, void (*callback)(ExplicitParameterObject*)); // expected-error {{'callback' argument at position 2 references unavailable implicit 'this'}}
12 };