diff --git a/tests/filecheck/mlir-conversion/builtin_attrs.mlir b/tests/filecheck/mlir-conversion/builtin_attrs.mlir index a91d343580..14df48a8e2 100644 --- a/tests/filecheck/mlir-conversion/builtin_attrs.mlir +++ b/tests/filecheck/mlir-conversion/builtin_attrs.mlir @@ -106,4 +106,22 @@ // CHECK: "value1" = opaque<"test", "contents">, "value2" = opaque<"test", "contents"> : tensor<2xf64> + "func.func"() ({}) {function_type = () -> (), + symbol = @some_symbol, + sym_name = "symbol_attr"} : () -> () + + // CHECK: "symbol" = @some_symbol + + "func.func"() ({}) {function_type = () -> (), + value1 = dense<[0]> : tensor, + sym_name = "unranked_tensor_type"} : () -> () + + // CHECK: tensor + + "func.func"() ({}) {function_type = () -> (), + value1 = dense<[0]> : tensor<-1xi32>, + sym_name = "unranked_tensor_type_2"} : () -> () + + // CHECK: tensor + }) : () -> ()