aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenObjC/ns-constant-strings.m
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-01-17 22:11:21 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-01-17 22:11:21 +0000
commit803d307a5385059b1a84dfe9706ab158c80a20dc (patch)
tree57c321081d5b7e8b6c113508d03c6be65bc7a7b8 /test/CodeGenObjC/ns-constant-strings.m
parent0f565591bcc0685181d7037fe9db60a31d29b9c9 (diff)
downloadclang-803d307a5385059b1a84dfe9706ab158c80a20dc.tar.gz
merge strings created by
const NSConstantString *appKey = @"MyApp"; git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123680 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenObjC/ns-constant-strings.m')
-rw-r--r--test/CodeGenObjC/ns-constant-strings.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGenObjC/ns-constant-strings.m b/test/CodeGenObjC/ns-constant-strings.m
index 3ef5f55842..389132bd05 100644
--- a/test/CodeGenObjC/ns-constant-strings.m
+++ b/test/CodeGenObjC/ns-constant-strings.m
@@ -31,3 +31,9 @@ int main() {
// CHECK-FRAGILE: @_NSConstantStringClassReference = external global
// CHECK-NONFRAGILE: @"OBJC_CLASS_$_NSConstantString" = external global
+
+// CHECK-FRAGILE: @.str = private unnamed_addr constant [6 x i8] c"MyApp\00"
+// CHECK-FRAGILE: @.str1 = private unnamed_addr constant [7 x i8] c"MyApp1\00"
+
+// CHECK-NONFRAGILE: @.str = private unnamed_addr constant [6 x i8] c"MyApp\00"
+// CHECK-NONFRAGILE: @.str1 = private unnamed_addr constant [7 x i8] c"MyApp1\00"