forked from OSchip/llvm-project
32 lines
551 B
MLIR
32 lines
551 B
MLIR
// RUN: mlir-opt %s -split-input-file -verify-diagnostics
|
|
|
|
// -----
|
|
|
|
func @module_op() {
|
|
// expected-error@+1 {{Operations with a 'SymbolTable' must have exactly one block}}
|
|
builtin.module {
|
|
^bb1:
|
|
"test.dummy"() : () -> ()
|
|
^bb2:
|
|
"test.dummy"() : () -> ()
|
|
}
|
|
return
|
|
}
|
|
|
|
// -----
|
|
|
|
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} {
|
|
}
|
|
|