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