aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-02 06:30:39 +0000
committerChris Lattner <sabre@nondot.org>2003-11-02 06:30:39 +0000
commit766be1de9d94d3d30fad9218b478a9c83736165b (patch)
tree5f959accc158cca4931b607d251b8c75d3001e87
parentbc61e661bd55343dac22c08c6c7be8855adc44c9 (diff)
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
-rw-r--r--test/C++Frontend/2003-11-02-WeakLinkage.cpp.tr12
1 files changed, 12 insertions, 0 deletions
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 0000000000..4671b40a9e
--- /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<class T>
+void thefunc();
+
+template<class T>
+inline void thefunc() {}
+
+void test() {
+ thefunc<int>();
+}
+