brintos

brintos / llvm-project-archived public Read only

0
0
Text · 467 B · 4e88747 Raw
12 lines · plain
1// RUN: not fir-opt --fir-to-llvm-ir="target=x86_64-unknown-linux-gnu" %s 2>&1 | FileCheck %s2 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  return11}12