diff --git a/test/Dialect/Numpy/types_attrs.mlir b/test/Dialect/Numpy/types_attrs.mlir new file mode 100644 index 000000000..6067854dc --- /dev/null +++ b/test/Dialect/Numpy/types_attrs.mlir @@ -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 +func @ndarray_dtype(%arg0 : !numpy.ndarray) -> !numpy.ndarray { + return %arg0 : !numpy.ndarray +}