☰
Debian Codegraph
@
1:22.1.8-2
1:22.1.8-1
1:22.1.7-1
/
/
clang
/
test
/
CodeGenCXX
/
2003-11-02-WeakLinkage.cpp
☽
☼
clang/test/CodeGenCXX/2003-11-02-WeakLinkage.cpp
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
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>
9
inline void thefunc() {}
10
11
void test() {
12
thefunc<int>();
13
}