diff options
Diffstat (limited to 'test/Transforms/SimplifyCFG/2003-08-05-MishandleInvoke.ll')
-rw-r--r-- | test/Transforms/SimplifyCFG/2003-08-05-MishandleInvoke.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/SimplifyCFG/2003-08-05-MishandleInvoke.ll b/test/Transforms/SimplifyCFG/2003-08-05-MishandleInvoke.ll new file mode 100644 index 0000000000..25deb3b362 --- /dev/null +++ b/test/Transforms/SimplifyCFG/2003-08-05-MishandleInvoke.ll @@ -0,0 +1,10 @@ +; Do not remove the invoke! +; +; RUN: as < %s | opt -simplifycfg | dis | grep invoke + +int %test() { + invoke int %test() to label %Ret except label %Ret +Ret: + %A = add int 0, 1 + ret int %A +} |