aboutsummaryrefslogtreecommitdiff
path: root/mlir/test/IR/diagnostic-nosplit.mlir
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/test/IR/diagnostic-nosplit.mlir')
-rw-r--r--mlir/test/IR/diagnostic-nosplit.mlir13
1 files changed, 13 insertions, 0 deletions
diff --git a/mlir/test/IR/diagnostic-nosplit.mlir b/mlir/test/IR/diagnostic-nosplit.mlir
new file mode 100644
index 0000000..ecfb9c6
--- /dev/null
+++ b/mlir/test/IR/diagnostic-nosplit.mlir
@@ -0,0 +1,13 @@
+// RUN: not mlir-opt %s -o - --split-input-file 2>&1 | FileCheck %s
+// This test verifies that diagnostic handler doesn't emit splits.
+
+
+// -----
+
+
+
+func.func @constant_out_of_range() {
+ // CHECK: mlir:11:8: error: 'arith.constant'
+ %x = "arith.constant"() {value = 100} : () -> i1
+ return
+}