aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/Inline/2004-04-15-InlineDeletesCall.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/Inline/2004-04-15-InlineDeletesCall.ll')
-rw-r--r--test/Transforms/Inline/2004-04-15-InlineDeletesCall.ll20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/Transforms/Inline/2004-04-15-InlineDeletesCall.ll b/test/Transforms/Inline/2004-04-15-InlineDeletesCall.ll
new file mode 100644
index 0000000..3899451
--- /dev/null
+++ b/test/Transforms/Inline/2004-04-15-InlineDeletesCall.ll
@@ -0,0 +1,20 @@
+; RUN: opt < %s -inline -disable-output
+
+; Inlining the first call caused the inliner function to delete the second
+; call. Then the inliner tries to inline the second call, which no longer
+; exists.
+
+define internal void @Callee1() {
+ unwind
+}
+
+define void @Callee2() {
+ ret void
+}
+
+define void @caller() {
+ call void @Callee1( )
+ call void @Callee2( )
+ ret void
+}
+