blob: 748ca6385be9491f33df07ddbc2850d2caaec04a [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001// RUN: %llvmgcc -xc++ -S -o - %s | not grep weak
2// The template should compile to linkonce linkage, not weak linkage.
3
4template<class T>
5void thefunc();
6
7template<class T>
8inline void thefunc() {}
9
10void test() {
11 thefunc<int>();
12}
13