Changeset View
Changeset View
Standalone View
Standalone View
mlir/test/Dialect/LLVMIR/invalid.mlir
Show All 27 Lines | |||||
// ----- | // ----- | ||||
llvm.func @dtor() | llvm.func @dtor() | ||||
// expected-error@+1{{'dtor' does not have a definition}} | // expected-error@+1{{'dtor' does not have a definition}} | ||||
llvm.mlir.global_dtors {dtors = [@dtor], priorities = [0 : i32]} | llvm.mlir.global_dtors {dtors = [@dtor], priorities = [0 : i32]} | ||||
// ----- | |||||
// expected-error@+1{{expected llvm.noalias argument attribute to be a unit attribute}} | |||||
func.func @invalid_noalias(%arg0: i32 {llvm.noalias = 3}) { | |||||
"llvm.return"() : () -> () | |||||
} | |||||
// ----- | |||||
// expected-error@+1{{llvm.align argument attribute of non integer type}} | |||||
func.func @invalid_align(%arg0: i32 {llvm.align = "foo"}) { | |||||
"llvm.return"() : () -> () | |||||
} | |||||
//////////////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////////////// | ||||
// Check that parser errors are properly produced and do not crash the compiler. | // Check that parser errors are properly produced and do not crash the compiler. | ||||
// ----- | // ----- | ||||
func.func @icmp_non_string(%arg0 : i32, %arg1 : i16) { | func.func @icmp_non_string(%arg0 : i32, %arg1 : i16) { | ||||
// expected-error@+1 {{invalid kind of attribute specified}} | // expected-error@+1 {{invalid kind of attribute specified}} | ||||
▲ Show 20 Lines • Show All 1,344 Lines • Show Last 20 Lines |