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/explicit-instantiation.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/explicit-instantiation.cpp')
-rw-r--r-- | test/CodeGenCXX/explicit-instantiation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGenCXX/explicit-instantiation.cpp b/test/CodeGenCXX/explicit-instantiation.cpp index b82958568a..8daf3c6800 100644 --- a/test/CodeGenCXX/explicit-instantiation.cpp +++ b/test/CodeGenCXX/explicit-instantiation.cpp @@ -1,7 +1,7 @@ // RUN: %clang_cc1 -emit-llvm -triple i686-pc-linux-gnu -o - %s | FileCheck %s // This check logically is attached to 'template int S<int>::i;' below. -// CHECK: @_ZN1SIiE1iE = weak global i32 +// CHECK: @_ZN1SIiE1iE = weak_odr global i32 template<typename T, typename U, typename Result> struct plus { |