11 lines · plain
1// RUN: not fir-opt --fir-to-llvm-ir="target=x86_64-unknown-linux-gnu" %s 2>&1 | FileCheck %s2 3// Test that `fir.boxproc_host` fails conversion to llvm.4// At the moment this test fails since `fir.boxproc` type does not have a conversion.5 6// CHECK: failed to legalize operation 'func.func'7func.func @test(%bproc: !fir.boxproc<(i32) -> ()>) {8 %tuple = fir.boxproc_host %bproc : (!fir.boxproc<(i32) -> ()>) -> (!fir.ref<tuple<i32,f64>>)9 return10}11