Mercurial > hg > CbC > CbC_llvm
comparison mlir/test/Examples/Toy/Ch6/invalid.mlir @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | c4bab56944e8 |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
1 // RUN: not toyc-ch6 %s -emit=mlir 2>&1 | |
2 | |
3 // The following IR is not "valid": | |
4 // - toy.print should not return a value. | |
5 // - toy.print should take an argument. | |
6 // - There should be a block terminator. | |
7 func @main() { | |
8 %0 = "toy.print"() : () -> tensor<2x3xf64> | |
9 } |