llvm-6502/test/Transforms/CodeExtractor/2004-11-12-InvokeExtract.ll
2006-12-02 04:23:10 +00:00

11 lines
194 B
LLVM

; RUN: llvm-upgrade < %s | llvm-as | opt -extract-blocks -disable-output
int %foo() {
br label %EB
EB:
%V = invoke int %foo() to label %Cont unwind label %Unw
Cont:
ret int %V
Unw:
unwind
}