llvmir-invalid.mlir 154 Bytes
// RUN: mlir-translate -verify-diagnostics -mlir-to-llvmir %s

// expected-error @+1 {{unsupported module-level operation}}
func @foo() {
  llvm.return
}