llvm-project
11 строк · 463.0 Байт
1// RUN: fir-opt --external-name-interop %s | FileCheck %s
2
3func.func @_QPfoo() {
4%e6 = fir.alloca tuple<i32,f64>
5%ao = fir.address_of(@_QPfoo_impl) : (!fir.box<!fir.type<derived3{f:f32}>>) -> ()
6%0 = fir.emboxproc %ao, %e6 : ((!fir.box<!fir.type<derived3{f:f32}>>) -> (), !fir.ref<tuple<i32,f64>>) -> !fir.boxproc<(!fir.box<!fir.type<derived3{f:f32}>>) -> ()>
7return
8}
9func.func private @_QPfoo_impl(!fir.ref<i32>)
10
11// CHECK: fir.address_of(@foo_impl_)
12