annotate clang/test/SemaCXX/builtin_objc_msgSend.cpp @ 222:81f6424ef0e3 llvm-original

LLVM original branch
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:10:01 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 %s -fsyntax-only -verify
anatofuz
parents:
diff changeset
2 // expected-no-diagnostics
anatofuz
parents:
diff changeset
3 // rdar://8686888
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 typedef struct objc_selector *SEL;
anatofuz
parents:
diff changeset
6 typedef struct objc_object *id;
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 extern "C" __attribute__((visibility("default"))) id objc_msgSend(id self, SEL op, ...)
anatofuz
parents:
diff changeset
9 __attribute__((visibility("default")));
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 inline void TCFReleaseGC(void * object)
anatofuz
parents:
diff changeset
12 {
anatofuz
parents:
diff changeset
13 static SEL SEL_release;
anatofuz
parents:
diff changeset
14 objc_msgSend((id)object, SEL_release);
anatofuz
parents:
diff changeset
15 }