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