1# RUN: toyc-ch2 %s -emit=mlir 2>&1 | FileCheck %s
2
3def main() {
4  var a<2, 2> = 5.5;
5  print(a);
6}
7
8# CHECK-LABEL: func @main() {
9# CHECK-NEXT:    %0 = toy.constant dense<5.500000e+00> : tensor<f64>
10# CHECK-NEXT:    %1 = toy.reshape(%0 : tensor<f64>) to tensor<2x2xf64>
11# CHECK-NEXT:    toy.print %1 : tensor<2x2xf64>
12# CHECK-NEXT:    toy.return
13# CHECK-NEXT:  }
14
15