| 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 |
|
| 8 |
"\01\04\01" ;; type section, 1 count |
| 9 |
"\60\00\00" ;; (type (func)) |
| 10 |
|
| 11 |
"\03\02\01\00" ;; func section, 1 count, type 0 |
| 12 |
|
| 13 |
"\0a\12" ;; code section |
| 14 |
"\01" ;; 1 count |
| 15 |
"\10" ;; function size |
| 16 |
"\ff\ff\ff\ff\28" ;; tons of locals, too big |
| 17 |
;; not enough data for locals |
| 18 |
"\00\00\00\00\00" |
| 19 |
"\00\00\00\00\00" |
| 20 |
"\00" |
| 21 |
) |
| 22 |
"integer too large") |