1 // RUN: not mlir-translate %s --allow-unregistered-dialect --mlir-to-llvmir -verify-diagnostics 2>&1 | FileCheck --check-prefix=UNREGOK %s
2 // RUN: not mlir-translate %s --mlir-to-llvmir -verify-diagnostics 2>&1 | FileCheck --check-prefix=REGONLY %s
5 // If the parser allows unregistered operations, then the translation fails,
6 // otherwise the parse fails.
8 // UNREGOK: cannot be converted to LLVM IR
9 // REGONLY: operation being parsed with an unregistered dialect
11 func.func @trivial() {
12 "simple.terminator"() : () -> ()