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 | 99ace16bc6962f1fc3dc45bbbdf2eb74e555a8ad (patch) | |
tree | 84800e26bace4f942fa56acdc48fea63dd0a1f7a /test/CodeGenCXX/specialized-static-data-mem-init.cpp | |
parent | 1d1a679090afe8468c6c95f8ab9c3192683ac69f (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129342 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/specialized-static-data-mem-init.cpp')
-rw-r--r-- | test/CodeGenCXX/specialized-static-data-mem-init.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGenCXX/specialized-static-data-mem-init.cpp b/test/CodeGenCXX/specialized-static-data-mem-init.cpp index 8f5765bcbb..c2a2ddb112 100644 --- a/test/CodeGenCXX/specialized-static-data-mem-init.cpp +++ b/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 { |