aboutsummaryrefslogtreecommitdiffstats
path: root/test/Other
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-03-31 17:36:12 +0000
committerDevang Patel <dpatel@apple.com>2009-03-31 17:36:12 +0000
commit28c531cdbb403c59f492d3361ec9e8581f2a7ab2 (patch)
tree238fde270115339e2735dc9fe3fc8941d483f5b2 /test/Other
parentbe46c79501eda9b9cd7bbb02d7e3e88f0c599c50 (diff)
downloadexternal_llvm-28c531cdbb403c59f492d3361ec9e8581f2a7ab2.zip
external_llvm-28c531cdbb403c59f492d3361ec9e8581f2a7ab2.tar.gz
external_llvm-28c531cdbb403c59f492d3361ec9e8581f2a7ab2.tar.bz2
Update call graph after inlining invoke.
Patch by Jay Foad. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68120 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Other')
-rw-r--r--test/Other/2009-03-31-CallGraph.ll31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/Other/2009-03-31-CallGraph.ll b/test/Other/2009-03-31-CallGraph.ll
new file mode 100644
index 0000000..43578be
--- /dev/null
+++ b/test/Other/2009-03-31-CallGraph.ll
@@ -0,0 +1,31 @@
+; RUN: llvm-as < %s | opt -inline -prune-eh -disable-output
+define void @f2() {
+ invoke void @f6()
+ to label %ok1 unwind label %lpad1
+
+ok1:
+ ret void
+
+lpad1:
+ invoke void @f4()
+ to label %ok2 unwind label %lpad2
+
+ok2:
+ call void @f8()
+ unreachable
+
+lpad2:
+ unreachable
+}
+
+declare void @f3()
+
+define void @f4() {
+ call void @f3()
+ ret void
+}
+
+declare void @f6() nounwind
+
+declare void @f8()
+