xref: /llvm-project/mlir/test/Pass/invalid-parent.mlir (revision 13bd41096286305ee603428f6adf161f52981827)
1// RUN: mlir-opt %s -pass-pipeline='builtin.module(func.func(test-pass-invalid-parent))' -verify-diagnostics
2
3// Test that we properly report errors when the parent becomes invalid after running a pass
4// on a child operation.
5// expected-error@below {{'some_unknown_func' does not reference a valid function}}
6func.func @TestCreateInvalidCallInPass() {
7  return
8}
9