diff options
Diffstat (limited to 'test/Transforms/SimplifyCFG/2003-08-05-InvokeCrash.ll')
-rw-r--r-- | test/Transforms/SimplifyCFG/2003-08-05-InvokeCrash.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Transforms/SimplifyCFG/2003-08-05-InvokeCrash.ll b/test/Transforms/SimplifyCFG/2003-08-05-InvokeCrash.ll new file mode 100644 index 0000000..c019931 --- /dev/null +++ b/test/Transforms/SimplifyCFG/2003-08-05-InvokeCrash.ll @@ -0,0 +1,13 @@ +; Do not remove the invoke! +; +; RUN: opt < %s -simplifycfg -disable-output + +define i32 @test() { + %A = invoke i32 @test( ) + to label %Ret unwind label %Ret2 ; <i32> [#uses=1] +Ret: ; preds = %0 + ret i32 %A +Ret2: ; preds = %0 + ret i32 undef +} + |