1 // RUN: mlir-opt %s | FileCheck %s
3 // CHECK-LABEL: module @dimension_list
4 module @dimension_list {
5 // CHECK: test.custom_dimension_list_attr dimension_list = []
6 test.custom_dimension_list_attr dimension_list = []
7 // CHECK: test.custom_dimension_list_attr dimension_list = 3
8 test.custom_dimension_list_attr dimension_list = 3
9 // CHECK: test.custom_dimension_list_attr dimension_list = 0
10 test.custom_dimension_list_attr dimension_list = 0
11 // CHECK: test.custom_dimension_list_attr dimension_list = 1x2
12 test.custom_dimension_list_attr dimension_list = 1x2
13 // CHECK: test.custom_dimension_list_attr dimension_list = ?
14 test.custom_dimension_list_attr dimension_list = ?
15 // CHECK: test.custom_dimension_list_attr dimension_list = ?x?
16 test.custom_dimension_list_attr dimension_list = ?x?
18 // CHECK: test.optional_custom_attr
19 test.optional_custom_attr bar
20 // CHECK: test.optional_custom_attr foo false
21 test.optional_custom_attr foo false