| 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\12\01" ;; code section |
| 11 |
"\10" ;; function size |
| 12 |
"\00" ;; no locals |
| 13 |
"\02\40" ;; block |
| 14 |
"\41\01" ;; i32.const 1 |
| 15 |
|
| 16 |
"\0e" ;; br_table |
| 17 |
"\02" ;; 2 count |
| 18 |
"\00\00" ;; 2 entries |
| 19 |
"\81\80\80\80\21" ;; default (overlong integer) |
| 20 |
|
| 21 |
"\0b" ;; end |
| 22 |
"\0b" ;; end |
| 23 |
) |
| 24 |
"integer too large") |