bolt/deps/llvm-18.1.8/mlir/test/Pass/invalid-parent.mlir
2025-02-14 19:21:04 +01:00

8 lines
365 B
MLIR

// RUN: mlir-opt %s -pass-pipeline='builtin.module(func.func(test-pass-invalid-parent))' -verify-diagnostics
// Test that we properly report errors when the parent becomes invalid after running a pass
// on a child operation.
// expected-error@below {{'some_unknown_func' does not reference a valid function}}
func.func @TestCreateInvalidCallInPass() {
return
}