2009-09-09 08:09:15 +08:00
|
|
|
; RUN: llc < %s -enable-correct-eh-support
|
2005-10-20 02:51:07 +08:00
|
|
|
|
2008-02-19 09:41:04 +08:00
|
|
|
define i32 @test() {
|
|
|
|
unwind
|
2005-10-20 02:51:07 +08:00
|
|
|
}
|
|
|
|
|
2008-02-19 09:41:04 +08:00
|
|
|
define i32 @main() {
|
|
|
|
%X = invoke i32 @test( )
|
|
|
|
to label %cont unwind label %EH ; <i32> [#uses=0]
|
|
|
|
|
|
|
|
cont: ; preds = %0
|
|
|
|
ret i32 1
|
|
|
|
|
|
|
|
EH: ; preds = %0
|
|
|
|
ret i32 0
|
2005-10-20 02:51:07 +08:00
|
|
|
}
|
2008-02-19 09:41:04 +08:00
|
|
|
|