// RUN: mlir-opt %s -split-input-file -verify-diagnostics // ----- // Reject index element type in dense array attribute. // expected-error@+1 {{expected integer or float type, got: 'index'}} module attributes { a = array } {} // ----- // Reject tensor element type in dense array attribute. // expected-error@+1 {{expected integer or float type, got: 'tensor<2xi32>'}} module attributes { a = array: 1, 2> } {} // ----- // Reject memref element type in dense array attribute. // expected-error@+1 {{expected integer or float type, got: 'memref<2xi32>'}} module attributes { a = array: 1, 2> } {} // ----- // Reject complex element type in dense array attribute. // expected-error@+1 {{expected integer or float type, got: 'complex'}} module attributes { a = array: 1, 2> } {}