diff options
author | Sean Hunt <rideau3@gmail.com> | 2010-01-24 03:04:27 +0000 |
---|---|---|
committer | Sean Hunt <rideau3@gmail.com> | 2010-01-24 03:04:27 +0000 |
commit | 31455256ae26cc7069111643ec4429ea564377da (patch) | |
tree | 53431a5b13cc8470317d88666409862de7bd0452 /test/CodeGenCXX/const-global-linkage.cpp | |
parent | 1efcf3d137c11fb6b21c385911e0d2ca59ca94c3 (diff) |
Mangle static variables with an extra name to distinguish them from non-static variables in the same TU.
Fixes PR5966 for real this time; also reverts r92911, which had a incorrect fix.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94352 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/const-global-linkage.cpp')
-rw-r--r-- | test/CodeGenCXX/const-global-linkage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGenCXX/const-global-linkage.cpp b/test/CodeGenCXX/const-global-linkage.cpp index f88bc808a7..d0a055b494 100644 --- a/test/CodeGenCXX/const-global-linkage.cpp +++ b/test/CodeGenCXX/const-global-linkage.cpp @@ -3,11 +3,11 @@ const int x = 10; const int y = 20; // CHECK-NOT: @x -// CHECK: @y = internal constant i32 20 +// CHECK: @_ZL1y = internal constant i32 20 const int& b() { return y; } const char z1[] = "asdf"; const char z2[] = "zxcv"; // CHECK-NOT: @z1 -// CHECK: @z2 = internal constant +// CHECK: @_ZL2z2 = internal constant const char* b2() { return z2; } |