17 lines · plain
1// RUN: mlir-translate -verify-diagnostics -mlir-to-llvmir --no-implicit-module -split-input-file %s2 3// expected-error@below {{'llvm.func' op can not be translated to an LLVMIR module}}4llvm.func @foo() {5 llvm.return6}7 8// -----9 10// expected-error@below {{expected an array attribute for a module level asm}}11module attributes {llvm.module_asm = "foo"} {}12 13// -----14 15// expected-error@below {{expected a string attribute for each entry of a module level asm}}16module attributes {llvm.module_asm = [42]} {}17