StmtPrinter: factor out arg printing code to PrintCallArgs
[clang.git] / test / CodeGenObjC / runtime-fns.m
blob203d87fff06563f4616f74e791389f8ad0f93846
1 // RUN: %clang_cc1 -emit-llvm -o %t %s
2 // RUN: grep -e "^de.*objc_msgSend[0-9]*(" %t | count 1
3 // RUN: %clang_cc1 -DWITHDEF -emit-llvm -o %t %s
4 // RUN: grep -e "^de.*objc_msgSend[0-9]*(" %t | count 1
6 id objc_msgSend(int x);
8 @interface A @end
10 @implementation A
11 -(void) f0 {
12   objc_msgSend(12);
15 -(void) hello {
17 @end
19 void f0(id x) {
20   [x hello];
23 #ifdef WITHDEF
24 // This isn't a very good send function.
25 id objc_msgSend(int x) {
26   return 0;
29 // rdar://6800430
30 void objc_assign_weak(id value, id *location) {
33 #endif