clang/test/SemaCXX/builtin_objc_msgSend.cpp
raw| 1 | // RUN: %clang_cc1 %s -fsyntax-only -verify |
| 2 | // expected-no-diagnostics |
| 3 | |
| 4 | typedef struct objc_selector *SEL; |
| 5 | typedef struct objc_object *id; |
| 6 | |
| 7 | extern "C" __attribute__((visibility("default"))) id objc_msgSend(id self, SEL op, ...) |
| 8 | __attribute__((visibility("default"))); |
| 9 | |
| 10 | inline void TCFReleaseGC(void * object) |
| 11 | { |
| 12 | static SEL SEL_release; |
| 13 | objc_msgSend((id)object, SEL_release); |
| 14 | } |