From eddc8f1f8b860adf408414391dc64170a8a2a87e Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Mon, 9 Jun 2008 11:28:41 +0000 Subject: [PATCH] Test that prune-eh doesn't make deductions based on bodies of functions with weak linkage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52141 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/PruneEH/2008-06-02-Weak.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/Transforms/PruneEH/2008-06-02-Weak.ll diff --git a/test/Transforms/PruneEH/2008-06-02-Weak.ll b/test/Transforms/PruneEH/2008-06-02-Weak.ll new file mode 100644 index 00000000000..133200f2847 --- /dev/null +++ b/test/Transforms/PruneEH/2008-06-02-Weak.ll @@ -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 +}