[llvm-commits] [llvm] r52141 - /llvm/trunk/test/Transforms/PruneEH/2008-06-02-Weak.ll
Duncan Sands
baldrick at free.fr
Mon Jun 9 04:28:48 PDT 2008
Author: baldrick
Date: Mon Jun 9 06:28:41 2008
New Revision: 52141
URL: http://llvm.org/viewvc/llvm-project?rev=52141&view=rev
Log:
Test that prune-eh doesn't make deductions based
on bodies of functions with weak linkage.
Added:
llvm/trunk/test/Transforms/PruneEH/2008-06-02-Weak.ll
Added: llvm/trunk/test/Transforms/PruneEH/2008-06-02-Weak.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/PruneEH/2008-06-02-Weak.ll?rev=52141&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/PruneEH/2008-06-02-Weak.ll (added)
+++ llvm/trunk/test/Transforms/PruneEH/2008-06-02-Weak.ll Mon Jun 9 06:28:41 2008
@@ -0,0 +1,12 @@
+; RUN: llvm-as < %s | opt -prune-eh | llvm-dis | not grep nounwind
+
+define weak void @f() {
+entry:
+ ret void
+}
+
+define void @g() {
+entry:
+ call void @f()
+ ret void
+}
More information about the llvm-commits
mailing list