summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/template-inner-struct-visibility-hidden.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-04-12 01:46:54 +0000
committerJohn McCall <rjmccall@apple.com>2011-04-12 01:46:54 +0000
commita97f32986913c07cac9c49b0b6b755b7190812b1 (patch)
treeb186fabf5c2070c3ece88e6c820f55895b510e40 /clang/test/CodeGenCXX/template-inner-struct-visibility-hidden.cpp
parentb4744a3f4d9bffebc671201b6c133f7464fb1c8e (diff)
downloadbcm5719-llvm-a97f32986913c07cac9c49b0b6b755b7190812b1.tar.gz
bcm5719-llvm-a97f32986913c07cac9c49b0b6b755b7190812b1.zip
Template static data members can have weak_odr linkage, not just
weak linkage. Also, fix a problem where global weak variables with non-trivial initializers were getting guard variables, or at least were checking for them and then crashing. llvm-svn: 129342
Diffstat (limited to 'clang/test/CodeGenCXX/template-inner-struct-visibility-hidden.cpp')
-rw-r--r--clang/test/CodeGenCXX/template-inner-struct-visibility-hidden.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/template-inner-struct-visibility-hidden.cpp b/clang/test/CodeGenCXX/template-inner-struct-visibility-hidden.cpp
index ca4446cd200..2c62b60b110 100644
--- a/clang/test/CodeGenCXX/template-inner-struct-visibility-hidden.cpp
+++ b/clang/test/CodeGenCXX/template-inner-struct-visibility-hidden.cpp
@@ -1,7 +1,7 @@
// RUN: %clang_cc1 -fvisibility hidden -emit-llvm -o - %s | FileCheck %s
// Verify that symbols are hidden.
-// CHECK: @_ZN1CIiE5Inner6Inner26StaticE = weak hidden global
+// CHECK: @_ZN1CIiE5Inner6Inner26StaticE = weak_odr hidden global
// CHECK: define weak_odr hidden void @_ZN1CIiE5Inner1fEv
// CHECK: define weak_odr hidden void @_ZN1CIiE5Inner6Inner21gEv
OpenPOWER on IntegriCloud