blob: 811fe50b4c745651790c8885f36c4626e5323d4f [file] [log] [blame]
Chris Lattner5d6bdae2003-08-05 16:11:36 +00001; Do not remove the invoke!
2;
Reid Spencer69ccadd2006-12-02 04:23:10 +00003; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg -disable-output
Chris Lattner5d6bdae2003-08-05 16:11:36 +00004
5int %test() {
Chris Lattnerc80dfba2006-12-16 02:29:22 +00006 %A = invoke int %test() to label %Ret except label %Ret2
Chris Lattner5d6bdae2003-08-05 16:11:36 +00007Ret:
8 ret int %A
Chris Lattnerc80dfba2006-12-16 02:29:22 +00009Ret2:
10 ret int undef
Chris Lattner5d6bdae2003-08-05 16:11:36 +000011}