Debian Codegraph @

clang/test/Rewriter/func-in-impl.m

raw
1 // RUN: %clang_cc1 -E %s -o %t.m
2 // RUN: %clang_cc1 -fobjc-runtime=macosx-fragile-10.5 -rewrite-objc %t.m -o - | FileCheck %s
3
4 @interface I {
5 id _delegate;
6 }
7 -(void)foo;
8 @end
9
10 @implementation I
11
12 static void KKKK(int w);
13
14 -(void) foo {
15 KKKK(0);
16 }
17
18 static void KKKK(int w) {
19 I *self = (I *)0;
20 if ([self->_delegate respondsToSelector:@selector(handlePortMessage:)]) {
21 }
22 }
23
24 -(void) foo2 {
25 KKKK(0);
26 }
27
28 @end
29
30 // CHECK: if (((id (*)(id, SEL, ...))(void *)objc_msgSend)((id)((struct I_IMPL *)self)->_delegate, sel_registerName("respondsToSelector:"), sel_registerName("handlePortMessage:")))