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