The 'thefunc' function should not have weak linkage, it should have linkonce linkage.
authorChris Lattner <sabre@nondot.org>
Sun, 2 Nov 2003 06:30:39 +0000 (06:30 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 2 Nov 2003 06:30:39 +0000 (06:30 +0000)
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 [new file with mode: 0644]

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 (file)
index 0000000..4671b40
--- /dev/null
@@ -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>();
+}
+