From 766be1de9d94d3d30fad9218b478a9c83736165b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 2 Nov 2003 06:30:39 +0000 Subject: [PATCH] The 'thefunc' function should not have weak linkage, it should have linkonce linkage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9655 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/C++Frontend/2003-11-02-WeakLinkage.cpp.tr | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/C++Frontend/2003-11-02-WeakLinkage.cpp.tr diff --git a/test/C++Frontend/2003-11-02-WeakLinkage.cpp.tr b/test/C++Frontend/2003-11-02-WeakLinkage.cpp.tr new file mode 100644 index 00000000000..4671b40a9e5 --- /dev/null +++ b/test/C++Frontend/2003-11-02-WeakLinkage.cpp.tr @@ -0,0 +1,12 @@ +// RUN: %llvmgcc -xc++ -S -o - %s | not grep weak + +template +void thefunc(); + +template +inline void thefunc() {} + +void test() { + thefunc(); +} + -- 2.34.1