New testcase
authorChris Lattner <sabre@nondot.org>
Wed, 10 Sep 2003 15:33:33 +0000 (15:33 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 10 Sep 2003 15:33:33 +0000 (15:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8440 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/ADCE/2003-09-10-UnwindInstFail.ll [new file with mode: 0644]

diff --git a/test/Transforms/ADCE/2003-09-10-UnwindInstFail.ll b/test/Transforms/ADCE/2003-09-10-UnwindInstFail.ll
new file mode 100644 (file)
index 0000000..750e0b8
--- /dev/null
@@ -0,0 +1,20 @@
+; RUN: as < %s | opt -adce -disable-output
+
+implementation   ; Functions:
+
+void %test() {
+       br bool false, label %then, label %endif
+
+then:
+       invoke void null( sbyte* null )
+                       to label %invoke_cont except label %invoke_catch
+
+invoke_catch:
+       unwind
+
+invoke_cont:
+       ret void
+
+endif:
+       ret void
+}