brintos

brintos / llvm-project-archived public Read only

0
0
Text · 596 B · 9c4a159 Raw
31 lines · plain
1// RUN: %clang_cc1 -E %s -o %t.m2// RUN: %clang_cc1 -fobjc-runtime=macosx-fragile-10.5 -rewrite-objc %t.m -o - | FileCheck %s3 4@interface I {5  id _delegate;6}7-(void)foo;8@end9 10@implementation I11 12static void KKKK(int w);13 14-(void) foo {15  KKKK(0);16}17 18static 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@end29 30// CHECK: if (((id (*)(id, SEL, ...))(void *)objc_msgSend)((id)((struct I_IMPL *)self)->_delegate, sel_registerName("respondsToSelector:"), sel_registerName("handlePortMessage:")))31