diff --git a/test/Transforms/CodeExtractor/2004-11-12-InvokeExtract.ll b/test/Transforms/CodeExtractor/2004-11-12-InvokeExtract.ll new file mode 100644 index 00000000000..b654266f07e --- /dev/null +++ b/test/Transforms/CodeExtractor/2004-11-12-InvokeExtract.ll @@ -0,0 +1,10 @@ +; RUN: llvm-as < %s | opt -extract-blocks -disable-output +int %foo() { + br label %EB +EB: + %V = invoke int %foo() to label %Cont unwind label %Unw +Cont: + ret int %V +Unw: + unwind +}