Skip to content

Commit 78161de

Browse files
committed
test emitting and parsing bytecode with unprintable char in resource handle key
1 parent 83b1057 commit 78161de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mlir/test/Bytecode/resources.mlir

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44
module @TestDialectResources attributes {
55
// CHECK: bytecode.test = dense_resource<decl_resource> : tensor<2xui32>
66
// CHECK: bytecode.test2 = dense_resource<resource> : tensor<4xf64>
7-
// CHECK: bytecode.test3 = dense_resource<resource_2> : tensor<4xf64>
7+
// CHECK: bytecode.test3 = dense_resource<"resource\09two"> : tensor<4xf64>
88
bytecode.test = dense_resource<decl_resource> : tensor<2xui32>,
99
bytecode.test2 = dense_resource<resource> : tensor<4xf64>,
10-
bytecode.test3 = dense_resource<resource_2> : tensor<4xf64>
10+
bytecode.test3 = dense_resource<"resource\09two"> : tensor<4xf64>
1111
} {}
1212

1313
// CHECK: builtin: {
1414
// CHECK-NEXT: resource: "0x08000000010000000000000002000000000000000300000000000000"
15-
// CHECK-NEXT: resource_2: "0x08000000010000000000000002000000000000000300000000000000"
15+
// CHECK-NEXT: "resource\09two": "0x08000000010000000000000002000000000000000300000000000000"
1616

1717
{-#
1818
dialect_resources: {
1919
builtin: {
2020
resource: "0x08000000010000000000000002000000000000000300000000000000",
21-
resource_2: "0x08000000010000000000000002000000000000000300000000000000"
21+
"resource\09two": "0x08000000010000000000000002000000000000000300000000000000"
2222
}
2323
}
2424
#-}

0 commit comments

Comments
 (0)