[llvm-commits] CVS: llvm/test/Transforms/Inline/2007-06-25-WeakInline.ll

Chris Lattner sabre at nondot.org
Mon Jun 25 14:50:21 PDT 2007



Changes in directory llvm/test/Transforms/Inline:

2007-06-25-WeakInline.ll added (r1.1)
---
Log message:

new testcase, the inliner shouldn't inline this.


---
Diffs of the changes:  (+14 -0)

 2007-06-25-WeakInline.ll |   14 ++++++++++++++
 1 files changed, 14 insertions(+)


Index: llvm/test/Transforms/Inline/2007-06-25-WeakInline.ll
diff -c /dev/null llvm/test/Transforms/Inline/2007-06-25-WeakInline.ll:1.1
*** /dev/null	Mon Jun 25 16:50:03 2007
--- llvm/test/Transforms/Inline/2007-06-25-WeakInline.ll	Mon Jun 25 16:49:53 2007
***************
*** 0 ****
--- 1,14 ----
+ ; RUN: llvm-as < %s | opt -inline | llvm-dis | grep call
+ 
+ ; 'bar' can be overridden at link-time, don't inline it.
+ 
+ define void @foo() {
+ entry:
+         tail call void @bar( )            ; <i32> [#uses=0]
+         ret void
+ }
+ 
+ define weak void @bar() {
+         ret void
+ }
+ 






More information about the llvm-commits mailing list