blob: 748ca6385be9491f33df07ddbc2850d2caaec04a [file] [log] [blame]
Reid Spencer090acfb2007-01-27 00:21:01 +00001// RUN: %llvmgcc -xc++ -S -o - %s | not grep weak
Chris Lattner87c178c2007-01-27 00:23:45 +00002// The template should compile to linkonce linkage, not weak linkage.
Chris Lattner766be1d2003-11-02 06:30:39 +00003
4template<class T>
5void thefunc();
6
7template<class T>
8inline void thefunc() {}
9
10void test() {
11 thefunc<int>();
12}
13