summaryrefslogtreecommitdiff
path: root/test/FrontendC++/2003-11-02-WeakLinkage.cpp
blob: 748ca6385be9491f33df07ddbc2850d2caaec04a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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>();
}