blob: 741a3a9b2dc94dd4af69a2a42630f52b7bd1bb84 [file] [log] [blame]
// 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 {{region should have no arguments}}
module {
^bb1(%arg: i32):
}
return
}
// -----
// expected-error@+1 {{can only contain attributes with dialect-prefixed names}}
module attributes {attr} {
}