llvm-6502/test/C++Frontend/2003-11-02-WeakLinkage.cpp
2008-05-21 14:48:24 +00:00

14 lines
235 B
C++

// RUN: %llvmgcc -xc++ -S -o - %s | not grep weak
// The template should compile to linkonce linkage, not weak linkage.
template<class T>
void thefunc();
template<class T>
inline void thefunc() {}
void test() {
thefunc<int>();
}