// RUN: mlir-opt --split-input-file -pass-pipeline="builtin.module(func.func(tosa-to-tensor))" %s -verify-diagnostics // CHECK-LABEL: @slice_resultType_unranked func.func @slice_resultType_unranked(%arg0: tensor) -> (tensor<*xf32>) { // expected-error@+1 {{failed to legalize operation 'tosa.slice'}} %0 = "tosa.slice"(%arg0) {start = array, size = array} : (tensor) -> (tensor<*xf32>) return %0 : tensor<*xf32> }