aboutsummaryrefslogtreecommitdiff
path: root/mlir/test/IR/array-of-attr.mlir
blob: 1b6fe55205959e2c0f30f9b1061bf350eba639f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: mlir-opt %s | mlir-opt | FileCheck %s

// CHECK: test.array_of_attr_op
test.array_of_attr_op
    // CHECK-SAME: a = [ begin 0 : index end, begin 2 : index end ]
    a = [begin 0 : index end, begin 2 : index end],
    // CHECK-SAME: [0, 1, -42, 42]
    b = [0, 1, -42, 42],
    // CHECK-SAME: [a, b, b, a]
    c = [a, b, b, a]

// CHECK: test.array_of_attr_op
// CHECK-SAME: a = [], b = [], c = []
test.array_of_attr_op a = [], b = [], c = []