Skip to content

Commit

Permalink
adding tests for parsing/printing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-luecke committed Jan 9, 2023
1 parent 9f8471c commit 7d67abe
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/filecheck/mlir-conversion/builtin_attrs.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -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<?xi32>,
sym_name = "unranked_tensor_type"} : () -> ()

// CHECK: tensor<?xi32>

"func.func"() ({}) {function_type = () -> (),
value1 = dense<[0]> : tensor<-1xi32>,
sym_name = "unranked_tensor_type_2"} : () -> ()

// CHECK: tensor<?xi32>

}) : () -> ()

0 comments on commit 7d67abe

Please sign in to comment.