blob: 3c6894dddd1772446f88680518513a47cc485d25 [file] [log] [blame]
Daniel Dunbarc5a97ec2009-11-17 07:07:28 +00001// RUN: clang-cc -emit-llvm -o %t %s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00002// RUN: grep -e "^de.*objc_msgSend[0-9]*(" %t | count 1
Daniel Dunbarc5a97ec2009-11-17 07:07:28 +00003// RUN: clang-cc -DWITHDEF -emit-llvm -o %t %s
Daniel Dunbarad2dc712008-10-01 01:06:06 +00004// RUN: grep -e "^de.*objc_msgSend[0-9]*(" %t | count 1
5
6id objc_msgSend(int x);
7
8@interface A @end
9
10@implementation A
11-(void) f0 {
12 objc_msgSend(12);
13}
14
15-(void) hello {
16}
17@end
18
19void f0(id x) {
20 [x hello];
21}
22
23#ifdef WITHDEF
24// This isn't a very good send function.
25id objc_msgSend(int x) {
26 return 0;
27}
Chris Lattner96508e12009-04-17 22:12:36 +000028
29// rdar://6800430
30void objc_assign_weak(id value, id *location) {
31}
32
Daniel Dunbarad2dc712008-10-01 01:06:06 +000033#endif