xref: /llvm-project/flang/test/Fir/Todo/unboxproc.fir (revision a8308020ac2fce5ad7d616b2dbdbe7ccae0585a4)
1// RUN: not fir-opt --fir-to-llvm-ir="target=x86_64-unknown-linux-gnu" %s 2>&1 | FileCheck %s
2
3// Test `fir.unboxproc` conversion to llvm.
4// Not implemented yet.
5// Currently fails since coversion for boxproc type is not implemented.
6
7// CHECK: failed to legalize operation 'func.func'
8func.func @boxing_match(%bproc: !fir.boxproc<(i32) -> ()>) {
9  %ubproc:2 = fir.unboxproc %bproc : (!fir.boxproc<(i32) -> ()>) -> ((i32) -> (), !fir.ref<tuple<i32,f64>>)
10  return
11}
12