aboutsummaryrefslogtreecommitdiffstats
path: root/test/C++Frontend/2003-11-02-WeakLinkage.cpp.tr
blob: 63dc88742f7904934f104a935b938d7aa5369647 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %llvmgcc -xc++ -S -o - %s | not grep weak
// XFAIL: llvmgcc4
// 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>();
}