xref: /llvm-project/mlir/test/Examples/Toy/Ch4/invalid.mlir (revision ee2c6cd9069fe0d8e7386ce53300e7645e4db792)
1// RUN: not toyc-ch4 %s -emit=mlir 2>&1
2
3// The following IR is not "valid":
4// - toy.print should not return a value.
5// - toy.print should take an argument.
6// - There should be a block terminator.
7toy.func @main() {
8  %0 = "toy.print"()  : () -> tensor<2x3xf64>
9}
10