aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/string-literal.c
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-01-10 22:34:03 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-01-10 22:34:03 +0000
commit1257bc6ee76b931e3f8e51a88298b95379963d24 (patch)
tree61dfbfc7b4abc09b6d223d56bebd53ca4c96d5c9 /test/CodeGen/string-literal.c
parent3cae5c9a79bfd2e27eb44c32b13dfacd2ce5c66f (diff)
Add unnamed_addr when creating artificial string globals. For example, in
static const char foo[] = "foo"; static const char *bar = "bar"; the global created to hold "bar" will have it, but foo will not. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123192 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/string-literal.c')
-rw-r--r--test/CodeGen/string-literal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/string-literal.c b/test/CodeGen/string-literal.c
index 43bfc2137f..6d02b0fdaf 100644
--- a/test/CodeGen/string-literal.c
+++ b/test/CodeGen/string-literal.c
@@ -8,9 +8,9 @@ int main() {
// CHECK: internal constant [10 x i8] c"\E1\84\A0\C8\A0\F4\82\80\B0\00", align 1
char b[10] = "\u1120\u0220\U00102030";
- // CHECK: private constant [12 x i8] c"A\00\00\00B\00\00\00\00\00\00\00"
+ // CHECK: private unnamed_addr constant [12 x i8] c"A\00\00\00B\00\00\00\00\00\00\00"
void *foo = L"AB";
- // CHECK: private constant [12 x i8] c"4\12\00\00\0B\F0\10\00\00\00\00\00"
+ // CHECK: private unnamed_addr constant [12 x i8] c"4\12\00\00\0B\F0\10\00\00\00\00\00"
void *bar = L"\u1234\U0010F00B";
}