blob: 6242c7ea770682e9d4e22db5a578a5869778fb13 [file] [log] [blame]
Argyrios Kyrtzidis9335df32012-02-12 04:48:45 +00001// RUN: %clang_cc1 -rewrite-objc %s -o - | FileCheck %s
2
3@interface I {
4 id _delegate;
5}
6-(void)foo;
7@end
8
9@implementation I
10
11static void KKKK(int w);
12
13-(void) foo {
14 KKKK(0);
15}
16
17static void KKKK(int w) {
18 I *self = (I *)0;
19 if ([self->_delegate respondsToSelector:@selector(handlePortMessage:)]) {
20 }
21}
22
23-(void) foo2 {
24 KKKK(0);
25}
26
27@end
28
29// CHECK: if (((id (*)(id, SEL, ...))(void *)objc_msgSend)((id)((struct I_IMPL *)self)->_delegate, sel_registerName("respondsToSelector:"), sel_registerName("handlePortMessage:")))