Changeset View
Changeset View
Standalone View
Standalone View
mlir/test/IR/invalid-module-op.mlir
Show All 38 Lines | |||||
func @module_op() { | func @module_op() { | ||||
// expected-error@+1 {{expects parent op 'module'}} | // expected-error@+1 {{expects parent op 'module'}} | ||||
"module_terminator"() : () -> () | "module_terminator"() : () -> () | ||||
} | } | ||||
// ----- | // ----- | ||||
// expected-error@+1 {{can only contain dialect-specific attributes}} | // expected-error@+1 {{can only contain attributes with dialect-prefixed names}} | ||||
module attributes {attr} { | module attributes {attr} { | ||||
} | } | ||||