flang/test/Fir/Todo/unboxproc.fir
raw| 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' |
| 8 | func.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 | } |