blob: 8f58f39200308d5fe8e8a3adc1741d1d1ad8e3c2 [file] [log] [blame]
// RUN: not mlir-opt %s -pass-pipeline='builtin.module(test-interface-pass)' 2>&1 | FileCheck %s
// Test that we emit an error when an interface pass is added to a pass manager it can't be scheduled on.
// CHECK: unable to schedule pass '{{.*}}' on a PassManager intended to run on 'builtin.module'!
func.func @main() {
return
}