Mercurial > hg > CbC > CbC_llvm
view mlir/test/IR/invalid-module-op.mlir @ 266:00f31e85ec16 default tip
Added tag current for changeset 31d058e83c98
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Oct 2023 10:13:55 +0900 |
parents | c4bab56944e8 |
children |
line wrap: on
line source
// RUN: mlir-opt %s -split-input-file -verify-diagnostics // ----- func.func @module_op() { // expected-error@+1 {{'builtin.module' op expects region #0 to have 0 or 1 blocks}} builtin.module { ^bb1: "test.dummy"() : () -> () ^bb2: "test.dummy"() : () -> () } return } // ----- func.func @module_op() { // expected-error@+1 {{region should have no arguments}} builtin.module { ^bb1(%arg: i32): } return } // ----- // expected-error@+1 {{can only contain attributes with dialect-prefixed names}} module attributes {attr} { }