summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-09-08 19:53:15 +0000
committerOwen Anderson <resistor@mac.com>2009-09-08 19:53:15 +0000
commit66b57f3a2a4891f05392bdffb6717326f99b9bc6 (patch)
tree3fd2217c4c89ced5ceb566ba33fc4e8b2b7570a0 /test
parentc5e639c1b8eb54e0af46b3a529d0a1cac39f8ded (diff)
downloadexternal_llvm-66b57f3a2a4891f05392bdffb6717326f99b9bc6.zip
external_llvm-66b57f3a2a4891f05392bdffb6717326f99b9bc6.tar.gz
external_llvm-66b57f3a2a4891f05392bdffb6717326f99b9bc6.tar.bz2
Fix PR4909, patch by Jakub Staszak.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81250 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/Inline/PR4909.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Transforms/Inline/PR4909.ll b/test/Transforms/Inline/PR4909.ll
new file mode 100644
index 0000000..48b2526
--- /dev/null
+++ b/test/Transforms/Inline/PR4909.ll
@@ -0,0 +1,15 @@
+; RUN: llvm-as < %s | opt -partial-inliner -disable-output
+
+define i32 @f() {
+entry:
+ br label %return
+
+return: ; preds = %entry
+ ret i32 undef
+}
+
+define i32 @g() {
+entry:
+ %0 = call i32 @f()
+ ret i32 %0
+}