xref: /llvm-project/mlir/test/Pass/invalid-interface-pass.mlir (revision 13bd41096286305ee603428f6adf161f52981827)
1// RUN: not mlir-opt %s -pass-pipeline='builtin.module(test-interface-pass)' 2>&1 | FileCheck %s
2
3// Test that we emit an error when an interface pass is added to a pass manager it can't be scheduled on.
4
5// CHECK: unable to schedule pass '{{.*}}' on a PassManager intended to run on 'builtin.module'!
6
7func.func @main() {
8  return
9}
10