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/explicit-instantiation.cpp | |
parent | b4744a3f4d9bffebc671201b6c133f7464fb1c8e (diff) | |
download | bcm5719-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/explicit-instantiation.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/explicit-instantiation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/explicit-instantiation.cpp b/clang/test/CodeGenCXX/explicit-instantiation.cpp index b82958568a8..8daf3c68000 100644 --- a/clang/test/CodeGenCXX/explicit-instantiation.cpp +++ b/clang/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 { |