YouCompleteMe/cpp/llvm/test/Transforms/PruneEH/simpletest.ll

20 lines
304 B
LLVM
Raw Normal View History

2012-07-05 20:51:06 -04:00
; 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
}