annotate clang/test/SemaCXX/builtin_objc_msgSend.cpp @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
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 }