brintos

brintos / llvm-project-archived public Read only

0
0
Text · 509 B · 07618fb Raw
33 lines · plain
1// RUN: %clang_cc1 -emit-llvm -o %t %s2// RUN: grep -e "^de.*objc_msgSend[0-9]*(" %t | count 13// RUN: %clang_cc1 -DWITHDEF -emit-llvm -o %t %s4// RUN: grep -e "^de.*objc_msgSend[0-9]*(" %t | count 15 6id objc_msgSend(int x);7 8@interface A @end9 10@implementation A11-(void) f0 {12  objc_msgSend(12);13}14 15-(void) hello {16}17@end18 19void f0(id x) {20  [x hello];21}22 23#ifdef WITHDEF24// This isn't a very good send function.25id objc_msgSend(int x) {26  return 0;27}28 29void objc_assign_weak(id value, id *location) {30}31 32#endif33