19 lines · plain
1// RUN: mlir-opt %s -pass-pipeline='builtin.module(func.func(test-pass-failure{gen-diagnostics}))' -verify-diagnostics2// RUN: mlir-opt %s -pass-pipeline='builtin.module(func.func(test-pass-failure{gen-diagnostics}))' -verify-diagnostics=all3 4// Test that all errors are reported.5// expected-error@below {{illegal operation}}6func.func @TestAlwaysIllegalOperationPass1() {7 return8}9 10// expected-error@below {{illegal operation}}11func.func @TestAlwaysIllegalOperationPass2() {12 return13}14 15// expected-error@below {{illegal operation}}16func.func @TestAlwaysIllegalOperationPass3() {17 return18}19