3 // On x86 the closure is inlined in foo() producing something like
4 // define i32 @foo() [...] {
5 // tail call void @bar() [...]
8 // On riscv the closure is another function, placed before fn foo so CHECK can't
10 // ignore-riscv64 FIXME
11 // On s390x the closure is also in another function
14 #![crate_type = "lib"]
23 pub unsafe fn foo() -> i32 {
24 // CHECK: call void @bar
26 std::panic::catch_unwind(|| {