Mercurial > hg > CbC > CbC_llvm
view mlir/test/IR/invalid-module-op.mlir @ 154:f7e988d3e4cc
fix def file
author | anatofuz |
---|---|
date | Wed, 11 Mar 2020 19:23:03 +0900 |
parents | 1d019706d866 |
children | 2e18cbf3894f |
line wrap: on
line source
// RUN: mlir-opt %s -split-input-file -verify-diagnostics // ----- func @module_op() { // expected-error@+1 {{Operations with a 'SymbolTable' must have exactly one block}} module { ^bb1: "module_terminator"() : () -> () ^bb2: "module_terminator"() : () -> () } return } // ----- func @module_op() { // expected-error@+1 {{expected body to have no arguments}} module { ^bb1(%arg: i32): "module_terminator"() : () -> () } return } // ----- func @module_op() { // expected-error@below {{expects regions to end with 'module_terminator'}} // expected-note@below {{the absence of terminator implies 'module_terminator'}} module { return } return } // ----- func @module_op() { // expected-error@+1 {{expects parent op 'module'}} "module_terminator"() : () -> () } // ----- // expected-error@+1 {{can only contain dialect-specific attributes}} module attributes {attr} { }