summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-11-24 23:28:09 +0000
committerBill Wendling <isanbard@gmail.com>2008-11-24 23:28:09 +0000
commit9822296b18c96550798cc83623f4b875e30872de (patch)
tree35ff15cc15b7c3140971ce4738dc10b268ad3bf4 /test
parent85fa13c02d383bb87dd9b8b9081a4d34a3e9c52c (diff)
downloadllvm-9822296b18c96550798cc83623f4b875e30872de.tar.gz
llvm-9822296b18c96550798cc83623f4b875e30872de.tar.bz2
llvm-9822296b18c96550798cc83623f4b875e30872de.tar.xz
Testcase for constant CFStrings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59992 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/FrontendObjC/2008-11-24-ConstCFStrings.m11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/FrontendObjC/2008-11-24-ConstCFStrings.m b/test/FrontendObjC/2008-11-24-ConstCFStrings.m
new file mode 100644
index 0000000000..976adc47f1
--- /dev/null
+++ b/test/FrontendObjC/2008-11-24-ConstCFStrings.m
@@ -0,0 +1,11 @@
+// RUN: %llvmgcc -x objective-c -m64 -S %s -o - | grep {L_unnamed_cfstring_}
+
+@class NSString;
+
+@interface A
+- (void)bork:(NSString*)msg;
+@end
+
+void func(A *a) {
+ [a bork:@"Hello world!"];
+}