summaryrefslogtreecommitdiff
path: root/test/FrontendObjC/2008-11-24-ConstCFStrings.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendObjC/2008-11-24-ConstCFStrings.m')
-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 000000000000..976adc47f12a
--- /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!"];
+}