aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/PruneEH
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-22 02:20:08 +0000
committerChris Lattner <sabre@nondot.org>2003-11-22 02:20:08 +0000
commitbe8d29909e0904930f7b28f5efd6ad3c107de692 (patch)
treebe752707c7bf903552e66a016192f9ad1cb67b4c /test/Transforms/PruneEH
parentc8ecd22037d4e72ca8e3757c09095b830502cc5a (diff)
downloadexternal_llvm-be8d29909e0904930f7b28f5efd6ad3c107de692.zip
external_llvm-be8d29909e0904930f7b28f5efd6ad3c107de692.tar.gz
external_llvm-be8d29909e0904930f7b28f5efd6ad3c107de692.tar.bz2
New testcase that breaks the pruneeh pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10162 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/PruneEH')
-rw-r--r--test/Transforms/PruneEH/2003-11-21-PHIUpdate.llx15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Transforms/PruneEH/2003-11-21-PHIUpdate.llx b/test/Transforms/PruneEH/2003-11-21-PHIUpdate.llx
new file mode 100644
index 0000000..d71259c
--- /dev/null
+++ b/test/Transforms/PruneEH/2003-11-21-PHIUpdate.llx
@@ -0,0 +1,15 @@
+; RUN: llvm-as < %s | opt -prune-eh -disable-output
+
+implementation
+
+internal void %callee() { ; does not throw
+ ret void
+}
+
+int %caller() {
+ invoke void %callee() to label %E except label %E
+
+E:
+ %X = phi int [0, %0], [0, %0]
+ ret int %X
+}