YouCompleteMe/cpp/llvm/test/Transforms/PruneEH/simpletest.ll
2012-07-05 17:51:06 -07:00

20 lines
304 B
LLVM

; RUN: opt < %s -prune-eh -S | not grep invoke
declare void @nounwind() nounwind
define internal void @foo() {
call void @nounwind()
ret void
}
define i32 @caller() {
invoke void @foo( )
to label %Normal unwind label %Except
Normal: ; preds = %0
ret i32 0
Except: ; preds = %0
ret i32 1
}