Reid Spencer | 090acfb | 2007-01-27 00:21:01 +0000 | [diff] [blame] | 1 | // RUN: %llvmgcc -xc++ -S -o - %s | not grep weak |
2 | // XFAIL: llvmgcc4 | ||||
Chris Lattner | 87c178c | 2007-01-27 00:23:45 +0000 | [diff] [blame^] | 3 | // The template should compile to linkonce linkage, not weak linkage. |
Chris Lattner | 766be1d | 2003-11-02 06:30:39 +0000 | [diff] [blame] | 4 | |
5 | template<class T> | ||||
6 | void thefunc(); | ||||
7 | |||||
8 | template<class T> | ||||
9 | inline void thefunc() {} | ||||
10 | |||||
11 | void test() { | ||||
12 | thefunc<int>(); | ||||
13 | } | ||||
14 |