Add test case for !numpy.ndarray.

pull/1/head
Stella Laurenzo 2020-06-28 17:41:21 -07:00
parent efe8915901
commit b2708e4687
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
// RUN: npcomp-opt -split-input-file %s | npcomp-opt | FileCheck --dump-input=fail %s
// CHECK-LABEL: @ndarray_no_dtype
// CHECK: !numpy.ndarray<?>
func @ndarray_no_dtype(%arg0 : !numpy.ndarray<?>) -> !numpy.ndarray<?> {
return %arg0 : !numpy.ndarray<?>
}
// CHECK-LABEL: @ndarray_dtype
// CHECK: !numpy.ndarray<i32>
func @ndarray_dtype(%arg0 : !numpy.ndarray<i32>) -> !numpy.ndarray<i32> {
return %arg0 : !numpy.ndarray<i32>
}