Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame^] | 1 | ; Do not remove the invoke! |
2 | ; | ||||
3 | ; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg -disable-output | ||||
4 | |||||
5 | int %test() { | ||||
6 | %A = invoke int %test() to label %Ret except label %Ret2 | ||||
7 | Ret: | ||||
8 | ret int %A | ||||
9 | Ret2: | ||||
10 | ret int undef | ||||
11 | } |