1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-24 05:23:45 +02:00
llvm-mirror/test/C++Frontend/2003-11-02-WeakLinkage.cpp.tr
Dale Johannesen 37aecc68ea testcases for function linkage
llvm-svn: 35955
2007-04-12 21:01:53 +00:00

14 lines
235 B
Plaintext

// 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>();
}