• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %llvmgcc -xc++ -S -o - %s | not grep weak
2 // The template should compile to linkonce linkage, not weak linkage.
3 
4 template<class T>
5 void thefunc();
6 
7 template<class T>
thefunc()8 inline void thefunc() {}
9 
test()10 void test() {
11   thefunc<int>();
12 }
13 
14