You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
256 B
14 lines
256 B
4 months ago
|
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
|
||
|
// The template should compile to linkonce linkage, not weak linkage.
|
||
|
|
||
|
// CHECK-NOT: weak
|
||
|
template<class T>
|
||
|
void thefunc();
|
||
|
|
||
|
template<class T>
|
||
|
inline void thefunc() {}
|
||
|
|
||
|
void test() {
|
||
|
thefunc<int>();
|
||
|
}
|