aboutsummaryrefslogtreecommitdiff
path: root/mlir/test/Examples/Toy/Ch7/invalid.mlir
blob: c0aa70791893aef0ab9625693f6e3d71c6f9064a (plain)
1
2
3
4
5
6
7
8
9
// RUN: not toyc-ch7 %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>
}