diff options
-rw-r--r-- | test/Transforms/ADCE/2003-09-10-UnwindInstFail.ll | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/Transforms/ADCE/2003-09-10-UnwindInstFail.ll b/test/Transforms/ADCE/2003-09-10-UnwindInstFail.ll new file mode 100644 index 0000000000..750e0b803b --- /dev/null +++ b/test/Transforms/ADCE/2003-09-10-UnwindInstFail.ll @@ -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 +} |