blob: f132b5420f5e74fd657f56b16b371f5726e31040 [file] [log] [blame]
Daniel Dunbarad2dc712008-10-01 01:06:06 +00001// RUN: clang -fnext-runtime -emit-llvm -o %t %s &&
2// RUN: grep -e "^de.*objc_msgSend[0-9]*(" %t | count 1 &&
3// RUN: clang -DWITHDEF -fnext-runtime -emit-llvm -o %t %s &&
4// 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}
28#endif