blob: 02f9fc6e911de4ea88f010f4d9f6438f1f1412a2 [file] [log] [blame]
Eric Christopheraeac10e2011-08-20 00:17:18 +00001// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
2// The template should compile to linkonce linkage, not weak linkage.
3
4// CHECK-NOT: weak
5template<class T>
6void thefunc();
7
8template<class T>
9inline void thefunc() {}
10
11void test() {
12 thefunc<int>();
13}