bolt/deps/llvm-18.1.8/mlir/test/Examples/Toy/Ch2/invalid.mlir
2025-02-14 19:21:04 +01:00

9 lines
267 B
MLIR

// RUN: not toyc-ch2 %s -emit=mlir 2>&1
// The following IR is not "valid":
// - toy.print should not return a value.
// - toy.print should take an argument.
// - There should be a block terminator.
toy.func @main() {
%0 = "toy.print"() : () -> tensor<2x3xf64>
}