2012-11-21 14:17:23 +00:00
|
|
|
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
2008-10-15 22:34:34 +00:00
|
|
|
; PR2894
|
|
|
|
declare void @g()
|
2015-06-17 20:52:32 +00:00
|
|
|
define void @f() personality i32 (...)* @__gxx_personality_v0 {
|
2012-11-21 14:17:23 +00: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-08-31 21:44:24 +00:00
|
|
|
c:
|
2015-06-17 20:52:32 +00:00
|
|
|
%exn = landingpad {i8*, i32}
|
2011-08-31 21:44:24 +00:00
|
|
|
cleanup
|
|
|
|
ret void
|
2008-10-15 22:34:34 +00:00
|
|
|
}
|
2011-08-31 21:44:24 +00:00
|
|
|
|
|
|
|
declare i32 @__gxx_personality_v0(...)
|