blob: 5ed62449d413c3cf0f5d8fabd8f6eee7d9f61285 [file] [log] [blame] [edit]
// RUN: mlir-translate -verify-diagnostics -mlir-to-llvmir --no-implicit-module -split-input-file %s
// expected-error@below {{'llvm.func' op can not be translated to an LLVMIR module}}
llvm.func @foo() {
llvm.return
}
// -----
// expected-error@below {{expected an array attribute for a module level asm}}
module attributes {llvm.module_asm = "foo"} {}
// -----
// expected-error@below {{expected a string attribute for each entry of a module level asm}}
module attributes {llvm.module_asm = [42]} {}