summaryrefslogtreecommitdiff
path: root/test/Transforms/Inline/callgraph-update.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-01 06:33:49 +0000
committerChris Lattner <sabre@nondot.org>2009-09-01 06:33:49 +0000
commit9535b314833c50bd1c7002b414a9dbabd6690b09 (patch)
tree9e05f92649f18ce3731a933c1063766636c9fe72 /test/Transforms/Inline/callgraph-update.ll
parenta541b0fde2ab6b8b037edf113d42da41a2c5aae9 (diff)
downloadllvm-9535b314833c50bd1c7002b414a9dbabd6690b09.tar.gz
llvm-9535b314833c50bd1c7002b414a9dbabd6690b09.tar.bz2
llvm-9535b314833c50bd1c7002b414a9dbabd6690b09.tar.xz
testcase for PR3601
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80664 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/Inline/callgraph-update.ll')
-rw-r--r--test/Transforms/Inline/callgraph-update.ll33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/Transforms/Inline/callgraph-update.ll b/test/Transforms/Inline/callgraph-update.ll
new file mode 100644
index 0000000000..8c6c190972
--- /dev/null
+++ b/test/Transforms/Inline/callgraph-update.ll
@@ -0,0 +1,33 @@
+; RUN: llvm-as < %s | opt -inline -loop-rotate | llvm-dis
+; PR3601
+declare void @solve()
+
+define internal fastcc void @read() {
+ br label %bb4
+
+bb3:
+ br label %bb4
+
+bb4:
+ call void @solve()
+ br i1 false, label %bb5, label %bb3
+
+bb5:
+ unreachable
+}
+
+define internal fastcc void @parse() {
+ call fastcc void @read()
+ ret void
+}
+
+define void @main() {
+ invoke fastcc void @parse()
+ to label %invcont unwind label %lpad
+
+invcont:
+ unreachable
+
+lpad:
+ unreachable
+}