summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC/implicit-objc_msgSend.m
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-04-23 07:00:09 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-04-23 07:00:09 +0000
commit4645707034aa609960dcf1be20adf3ef8b99e526 (patch)
treeb27753fee34d7d075217de3d4ec6eaaf7f741d42 /clang/test/CodeGenObjC/implicit-objc_msgSend.m
parent7b0344f6567bd60527366083b76829053490c4c5 (diff)
downloadbcm5719-llvm-4645707034aa609960dcf1be20adf3ef8b99e526.tar.gz
bcm5719-llvm-4645707034aa609960dcf1be20adf3ef8b99e526.zip
Add implicit definition of objc_msgSend.
- As with malloc and friends, this is important where the return type on a 64-bit platform would otherwise end up discarding the upper 32-bits. llvm-svn: 69874
Diffstat (limited to 'clang/test/CodeGenObjC/implicit-objc_msgSend.m')
-rw-r--r--clang/test/CodeGenObjC/implicit-objc_msgSend.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/implicit-objc_msgSend.m b/clang/test/CodeGenObjC/implicit-objc_msgSend.m
new file mode 100644
index 00000000000..4511cca338b
--- /dev/null
+++ b/clang/test/CodeGenObjC/implicit-objc_msgSend.m
@@ -0,0 +1,7 @@
+// RUN: clang-cc -triple x86_64-apple-darwin9 -emit-llvm -o %t %s &&
+// RUN: grep -F 'declare i8* @objc_msgSend(...)' %t
+
+typedef struct objc_selector *SEL;
+id f0(id x, SEL s) {
+ return objc_msgSend(x, s);
+}
OpenPOWER on IntegriCloud