2012-11-21 22:17:23 +08:00
|
|
|
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
2008-10-16 06:34:34 +08:00
|
|
|
; PR2894
|
|
|
|
declare void @g()
|
2015-06-18 04:52:32 +08:00
|
|
|
define void @f() personality i32 (...)* @__gxx_personality_v0 {
|
2012-11-21 22:17:23 +08:00
|
|
|
; CHECK: invoke void @g()
|
|
|
|
; CHECK: to label %d unwind label %c
|
|
|
|
invoke void @g() to label %d unwind label %c
|
|
|
|
d:
|
|
|
|
ret void
|
2011-09-01 05:44:24 +08:00
|
|
|
c:
|
2015-06-18 04:52:32 +08:00
|
|
|
%exn = landingpad {i8*, i32}
|
2011-09-01 05:44:24 +08:00
|
|
|
cleanup
|
|
|
|
ret void
|
2008-10-16 06:34:34 +08:00
|
|
|
}
|
2011-09-01 05:44:24 +08:00
|
|
|
|
|
|
|
declare i32 @__gxx_personality_v0(...)
|