mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 20:56:06 +00:00

2003-11-02-WeakLinkage.cpp 2003-11-18-PtrMemConstantInitializer.cpp 2003-11-25-ReturningOpaqueByValue.cpp 2003-11-27-MultipleInheritanceThunk.cpp 2003-11-29-DuplicatedCleanupTest.cpp 2003-12-08-ArrayOfPtrToMemberFunc.cpp 2004-01-11-DynamicInitializedConstant.cpp from llvm/test/FrontendC++. llvm-svn: 138162
14 lines
256 B
C++
14 lines
256 B
C++
// 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>();
|
|
}
|