summaryrefslogtreecommitdiffstats
path: root/mlir/test/Examples/Toy/Ch2/invalid.mlir
blob: a8ceab9735e118204379a3809d00a73c9a55d475 (plain)
1
2
3
4
5
6
7
8
9
// 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.
func @main() {
  %0 = "toy.print"()  : () -> tensor<2x3xf64>
}
OpenPOWER on IntegriCloud