xref: /llvm-project/mlir/test/Pass/invalid-pass.mlir (revision 470f3cee3557974bb1820722bf82d86b8909199b)
1// RUN: not mlir-opt %s -pass-pipeline='builtin.module(builtin.module(test-module-pass{test-option=a}))' 2>&1 | FileCheck %s
2// RUN: not mlir-opt %s -mlir-print-ir-module-scope -mlir-print-ir-before=cse 2>&1 | FileCheck -check-prefix=PRINT_MODULE_IR_WITH_MULTITHREAD %s
3
4// CHECK: <Pass-Options-Parser>: no such option test-option
5// CHECK: failed to add `test-module-pass` with options `test-option=a`
6// CHECK: failed to add `builtin.module` with options `` to inner pipeline
7module {}
8
9// PRINT_MODULE_IR_WITH_MULTITHREAD: IR print for module scope can't be setup on a pass-manager without disabling multi-threading first.
10