diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-03-12 04:49:06 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-03-12 04:49:06 +0000 |
commit | e5e0c9deb1b4cfa081152cda548d31368facbc57 (patch) | |
tree | 9d56492d9869cdedcaaff27f5978ef3bdee8fa53 /test/CodeGenCXX/explicit-instantiation.cpp | |
parent | 187ab37a05b8f7015b9f39cc8cd9129a0c6d0b48 (diff) |
Give explicit template instantiations weak linkage (but don't defer
them). Fixes PR6578.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98328 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/explicit-instantiation.cpp')
-rw-r--r-- | test/CodeGenCXX/explicit-instantiation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGenCXX/explicit-instantiation.cpp b/test/CodeGenCXX/explicit-instantiation.cpp index ab9174e8f4..0b1712e062 100644 --- a/test/CodeGenCXX/explicit-instantiation.cpp +++ b/test/CodeGenCXX/explicit-instantiation.cpp @@ -1,5 +1,4 @@ -// RUN: %clang_cc1 -emit-llvm -triple i686-pc-linux-gnu -o %t %s -// RUN: grep "define i32 @_ZNK4plusIillEclERKiRKl" %t | count 1 +// RUN: %clang_cc1 -emit-llvm -triple i686-pc-linux-gnu -o - %s | FileCheck %s template<typename T, typename U, typename Result> struct plus { @@ -11,4 +10,5 @@ Result plus<T, U, Result>::operator()(const T& t, const U& u) const { return t + u; } +// CHECK: define linkonce_odr i32 @_ZNK4plusIillEclERKiRKl template struct plus<int, long, long>; |