diff options
Diffstat (limited to 'test/Transforms/SimplifyCFG/2003-08-05-InvokeCrash.ll')
-rw-r--r-- | test/Transforms/SimplifyCFG/2003-08-05-InvokeCrash.ll | 11 |
1 files changed, 11 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..811fe50 --- /dev/null +++ b/test/Transforms/SimplifyCFG/2003-08-05-InvokeCrash.ll @@ -0,0 +1,11 @@ +; Do not remove the invoke! +; +; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg -disable-output + +int %test() { + %A = invoke int %test() to label %Ret except label %Ret2 +Ret: + ret int %A +Ret2: + ret int undef +} |