brintos

brintos / llvm-project-archived public Read only

0
0
Text · 661 B · 4593e19 Raw
12 lines · plain
1// RUN: %not_todo_cmd fir-opt --fir-to-llvm-ir="target=x86_64-unknown-linux-gnu" %s 2>&1 | FileCheck %s2 3// `!fir.coordinate_of` - derived type with `!fir.len_param_index`. As4// `!fir.len_param_index` is not implemented yet, the error that we hit is5// related to `!fir.len_param_index` rather than `!fir.coordinate_of`.6func.func @coordinate_box_derived_with_fir_len(%arg0: !fir.box<!fir.type<derived_2{len1:i32}>>) {7// CHECK: not yet implemented: fir.len_param_index codegen8  %e = fir.len_param_index len1, !fir.type<derived_2{len1:i32}>9  %q = fir.coordinate_of %arg0, %e : (!fir.box<!fir.type<derived_2{len1:i32}>>, !fir.len) -> !fir.ref<i32>10  return11}12