summaryrefslogtreecommitdiffstats
path: root/mlir/test/Examples
diff options
context:
space:
mode:
authorMehdi Amini <aminim@google.com>2019-04-03 19:16:32 -0700
committerMehdi Amini <joker.eph@gmail.com>2019-04-03 19:22:42 -0700
commit092f3facad466522cfeab80ee92f6950176be7aa (patch)
tree4ec6207603c4b6bee5ae29877dbd8ebf3750bf5c /mlir/test/Examples
parentf0a328b6d5e0b1e4679352c7b3c37d3fe7de80e7 (diff)
downloadbcm5719-llvm-092f3facad466522cfeab80ee92f6950176be7aa.tar.gz
bcm5719-llvm-092f3facad466522cfeab80ee92f6950176be7aa.zip
Fix Toy Ch3 testing with CMake
Mainly a missing dependency caused the tests to pass if one already built the repo, but not from a clean (or incremental) build. -- PiperOrigin-RevId: 241852313
Diffstat (limited to 'mlir/test/Examples')
-rw-r--r--mlir/test/Examples/Toy/Ch3/scalar.toy2
1 files changed, 2 insertions, 0 deletions
diff --git a/mlir/test/Examples/Toy/Ch3/scalar.toy b/mlir/test/Examples/Toy/Ch3/scalar.toy
index 41153ec92e1..16bb2541b6c 100644
--- a/mlir/test/Examples/Toy/Ch3/scalar.toy
+++ b/mlir/test/Examples/Toy/Ch3/scalar.toy
@@ -1,3 +1,5 @@
+# RUN: toyc-ch3 %s -emit=mlir 2>&1 | FileCheck %s
+
def main() {
var a<2, 2> = 5.5;
print(a);
OpenPOWER on IntegriCloud