[llvm-commits] CVS: llvm/test/Regression/C++Frontend/2003-11-02-WeakLinkage.cpp.tr
Chris Lattner
lattner at cs.uiuc.edu
Sun Nov 2 00:31:01 PST 2003
Changes in directory llvm/test/Regression/C++Frontend:
2003-11-02-WeakLinkage.cpp.tr added (r1.1)
---
Log message:
The 'thefunc' function should not have weak linkage, it should have linkonce linkage.
---
Diffs of the changes: (+12 -0)
Index: llvm/test/Regression/C++Frontend/2003-11-02-WeakLinkage.cpp.tr
diff -c /dev/null llvm/test/Regression/C++Frontend/2003-11-02-WeakLinkage.cpp.tr:1.1
*** /dev/null Sun Nov 2 00:30:52 2003
--- llvm/test/Regression/C++Frontend/2003-11-02-WeakLinkage.cpp.tr Sun Nov 2 00:30:39 2003
***************
*** 0 ****
--- 1,12 ----
+ // RUN: %llvmgcc -xc++ -S -o - %s | not grep weak
+
+ template<class T>
+ void thefunc();
+
+ template<class T>
+ inline void thefunc() {}
+
+ void test() {
+ thefunc<int>();
+ }
+
More information about the llvm-commits
mailing list