Debian Codegraph @

tests/cli/invalid/empty-br-table.wast

raw
1 ;; RUN: wast --assert default --snapshot tests/snapshots %
2
3 (assert_malformed
4 (module binary
5 "\00\61\73\6d" ;; header
6 "\01\00\00\00" ;; version
7 "\01\04\01\60\00\00" ;; type section, 1 type, (func)
8 "\03\02\01\00" ;; func section, 1 function, type 0
9
10 "\0a\0e\01" ;; code section
11 "\0c" ;; function size
12 "\00" ;; no locals
13 "\02\40" ;; block
14 "\41\01" ;; i32.const 1
15
16 "\0e" ;; br_table
17 "\01" ;; 1 count
18 ;; overlong integer
19 "\f9\f7\f8\f4\20"
20 )
21 "integer too large")