blob: 5a06d386dabf8789c012883f220c2cdb19ba4e31 [file] [edit]
// Test that an unmatched `expected-*` directive using the `@unknown` location
// specifier emits a diagnostic instead of crashing.
// See https://github.com/llvm/llvm-project/issues/163343
// RUN: not mlir-opt --verify-diagnostics %s 2>&1 | FileCheck %s
// CHECK: expected warning "some warning that is never produced" was not produced
// expected-warning @unknown {{some warning that is never produced}}