Skip to content

Commit 707a3fb

Browse files
committed
branch hinting: add a binary test
1 parent 4fe2f00 commit 707a3fb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/custom/metadata.code.branch_hint/branch_hint.wast

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@
4747
)
4848
)
4949

50+
(module binary
51+
"\00asm" "\01\00\00\00"
52+
"\01\85\80\80\80\00\01\60\01\7f\00"
53+
"\03\82\80\80\80\00\01\00\00"
54+
"\a0\80\80\80\00\19\6d\65\74\61\64\61\74\61\2e\63\6f\64\65\2e\62\72\61\6e\63\68\5f\68\69\6e\74\01\00\01\05\01\00"
55+
"\0a\8f\80\80\80\00\01\89\80\80\80\00\00\02\40\41\00\0d\00\0b\0b"
56+
)
57+
5058
(assert_malformed_custom
5159
(module quote
5260
"(func $test2 (type 0)"
@@ -97,3 +105,4 @@
97105
)
98106
"@metadata.code.branch_hint annotation: invalid target"
99107
)
108+

0 commit comments

Comments
 (0)