@@ -16,6 +16,8 @@ func.func @emitc_constant() {
1616  %c8  = " emitc.constant"  (){value  = dense <0 > : tensor <i32 >} : () -> tensor <i32 >
1717  %c9  = " emitc.constant"  (){value  = dense <[0 , 1 ]> : tensor <2 xindex >} : () -> tensor <2 xindex >
1818  %c10  = " emitc.constant"  (){value  = dense <[[0.0 , 1.0 ], [2.0 , 3.0 ]]> : tensor <2 x2 xf32 >} : () -> tensor <2 x2 xf32 >
19+   %c11  = " emitc.constant"  (){value  = dense <[0 , 1 ]> : !emitc.array <2 xindex >} : () -> !emitc.array <2 xindex >
20+   %c12  = " emitc.constant"  (){value  = dense <[0.0 , 1.0 ]> : !emitc.array <2 xf32 >} : () -> !emitc.array <2 xf32 >
1921  return 
2022}
2123// CPP-DEFAULT: void emitc_constant() { 
@@ -33,6 +35,8 @@ func.func @emitc_constant() {
3335// CPP-DEFAULT-NEXT: Tensor<int32_t> [[V8:[^ ]*]] = {0}; 
3436// CPP-DEFAULT-NEXT: Tensor<size_t, 2> [[V9:[^ ]*]] = {0, 1}; 
3537// CPP-DEFAULT-NEXT: Tensor<float, 2, 2> [[V10:[^ ]*]] = {0.0e+00f, 1.000000000e+00f, 2.000000000e+00f, 3.000000000e+00f}; 
38+ // CPP-DEFAULT-NEXT: size_t [[V11:[^ ]*]][2] = {0, 1}; 
39+ // CPP-DEFAULT-NEXT: float [[V12:[^ ]*]][2] = {0.0e+00f, 1.000000000e+00f}; 
3640
3741// CPP-DECLTOP: void emitc_constant() { 
3842// CPP-DECLTOP-NEXT: int32_t [[V0:[^ ]*]]; 
@@ -49,6 +53,8 @@ func.func @emitc_constant() {
4953// CPP-DECLTOP-NEXT: Tensor<int32_t> [[V8:[^ ]*]]; 
5054// CPP-DECLTOP-NEXT: Tensor<size_t, 2> [[V9:[^ ]*]]; 
5155// CPP-DECLTOP-NEXT: Tensor<float, 2, 2> [[V10:[^ ]*]]; 
56+ // CPP-DECLTOP-NEXT: size_t [[V11:[^ ]*]][2]; 
57+ // CPP-DECLTOP-NEXT: float [[V12:[^ ]*]][2]; 
5258// CPP-DECLTOP-NEXT: [[V0]] = INT_MAX; 
5359// CPP-DECLTOP-NEXT: [[V1]] = 42; 
5460// CPP-DECLTOP-NEXT: [[V2]] = -1; 
@@ -63,3 +69,5 @@ func.func @emitc_constant() {
6369// CPP-DECLTOP-NEXT: [[V8]] = {0}; 
6470// CPP-DECLTOP-NEXT: [[V9]] = {0, 1}; 
6571// CPP-DECLTOP-NEXT: [[V10]] = {0.0e+00f, 1.000000000e+00f, 2.000000000e+00f, 3.000000000e+00f}; 
72+ // CPP-DECLTOP-NEXT: [[V11]] = {0, 1}; 
73+ // CPP-DECLTOP-NEXT: [[V12]] = {0.0e+00f, 1.000000000e+00f}; 
0 commit comments