bolt/deps/llvm-18.1.8/mlir/test/Pass/invalid-interface-pass.mlir

10 lines
334 B
MLIR
Raw Normal View History

2025-02-14 19:21:04 +01:00
// 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
}