xref: /llvm-project/clang/test/CodeGenCXX/2003-11-02-WeakLinkage.cpp (revision aab7dffa12de9ad1e20c04e5ef261af3d5c224d5)
1 // 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
5 template<class T>
6 void thefunc();
7 
8 template<class T>
thefunc()9 inline void thefunc() {}
10 
test()11 void test() {
12   thefunc<int>();
13 }
14