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