diff mlir/test/Examples/Toy/Ch6/invalid.mlir @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children c4bab56944e8
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mlir/test/Examples/Toy/Ch6/invalid.mlir	Thu Feb 13 15:10:13 2020 +0900
@@ -0,0 +1,9 @@
+// RUN: not toyc-ch6 %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>
+}