blob: c6f54c43516fac822fbfe95798c7923619dc49b3 [file] [log] [blame]
// 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
}