diff options
author | John McCall <rjmccall@apple.com> | 2011-04-12 01:46:54 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-04-12 01:46:54 +0000 |
commit | a97f32986913c07cac9c49b0b6b755b7190812b1 (patch) | |
tree | b186fabf5c2070c3ece88e6c820f55895b510e40 /clang/test/CodeGenCXX/specialized-static-data-mem-init.cpp | |
parent | b4744a3f4d9bffebc671201b6c133f7464fb1c8e (diff) | |
download | llvm-a97f32986913c07cac9c49b0b6b755b7190812b1.zip llvm-a97f32986913c07cac9c49b0b6b755b7190812b1.tar.gz llvm-a97f32986913c07cac9c49b0b6b755b7190812b1.tar.bz2 |
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/specialized-static-data-mem-init.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/specialized-static-data-mem-init.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGenCXX/specialized-static-data-mem-init.cpp b/clang/test/CodeGenCXX/specialized-static-data-mem-init.cpp index 8f5765b..c2a2ddb 100644 --- a/clang/test/CodeGenCXX/specialized-static-data-mem-init.cpp +++ b/clang/test/CodeGenCXX/specialized-static-data-mem-init.cpp @@ -2,8 +2,8 @@ // rdar: // 8562966 // pr8409 -// CHECK: @_ZN1CIiE11needs_guardE = weak global -// CHECK: @_ZGVN1CIiE11needs_guardE = weak global +// CHECK: @_ZN1CIiE11needs_guardE = weak_odr global +// CHECK: @_ZGVN1CIiE11needs_guardE = weak_odr global struct K { |