llvm-project/llvm/test/Transforms/PruneEH/2003-09-14-ExternalCall.ll

12 lines
189 B
LLVM
Raw Normal View History

; RUN: opt %s -prune-eh -S | grep invoke
2003-09-15 10:22:35 +08:00
2008-03-19 13:39:35 +08:00
declare void @External()
2003-09-15 10:22:35 +08:00
2008-03-19 13:39:35 +08:00
define void @foo() {
invoke void @External( )
to label %Cont unwind label %Cont
Cont: ; preds = %0, %0
2003-09-15 10:22:35 +08:00
ret void
}
2008-03-19 13:39:35 +08:00