Skip to content

Commit a3476bb

Browse files
committed
verifier test
1 parent 313fd90 commit a3476bb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

mlir/test/Dialect/MemRef/invalid.mlir

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,3 +1169,11 @@ func.func @expand_shape_invalid_output_shape(
11691169
into memref<2x15x20xf32, strided<[60000, 4000, 2], offset: 100>>
11701170
return
11711171
}
1172+
1173+
// -----
1174+
1175+
func.func @Invalid_distinct_objects(%arg0: memref<?xf32>, %arg1: memref<?xi32>) -> (memref<?xi32>, memref<?xf32>) {
1176+
// expected-error @+1 {{operand types and result types must match}}
1177+
%0, %1 = "memref.distinct_objects"(%arg0, %arg1) : (memref<?xf32>, memref<?xi32>) -> (memref<?xi32>, memref<?xf32>)
1178+
return %0, %1 : memref<?xi32>, memref<?xf32>
1179+
}

0 commit comments

Comments
 (0)