// RUN: mlir-opt %s -pass-pipeline='builtin.module(func.func(test-pass-failure{gen-diagnostics}))' -verify-diagnostics // RUN: mlir-opt %s -pass-pipeline='builtin.module(func.func(test-pass-failure{gen-diagnostics}))' -verify-diagnostics=all // Test that all errors are reported. // expected-error@below {{illegal operation}} func.func @TestAlwaysIllegalOperationPass1() { return } // expected-error@below {{illegal operation}} func.func @TestAlwaysIllegalOperationPass2() { return } // expected-error@below {{illegal operation}} func.func @TestAlwaysIllegalOperationPass3() { return }