| 1 |
;; RUN: wast --assert default --snapshot tests/snapshots % -f mvp |
| 2 |
|
| 3 |
(module binary |
| 4 |
"\00asm\01\00\00\00" ;; the header |
| 5 |
|
| 6 |
"\05\06\01" ;; a memory section with 1 entry |
| 7 |
"\01\70\e0\ab\02" ;; definition of the 0th memory |
| 8 |
|
| 9 |
"\0b\08\01" ;; a data section with 1 entry |
| 10 |
"\02\00" ;; data section entry referencing 0th memory using flag 02 encoding. |
| 11 |
"\41\ca\0f\0b\00" ;; offset and data for the entry |
| 12 |
) |
| 13 |
|
| 14 |
(module binary |
| 15 |
"\00asm\01\00\00\00" ;; the header |
| 16 |
|
| 17 |
"\05\06\01" ;; a memory section with 1 entry |
| 18 |
"\01\70\e0\ab\02" ;; a definition of the 0th memory |
| 19 |
|
| 20 |
"\0b\08\01" ;; a data section with 1 entry |
| 21 |
"\80\00" ;; data section entry referencing 0th memory using a WebAssembly 1.0 encoding |
| 22 |
;; this encoding is not supported in current WebAssembly draft. |
| 23 |
"\41\ca\0f\0b\00" ;; offset and data for the entry |
| 24 |
) |
| 25 |
|
| 26 |
(module binary |
| 27 |
"\00asm\01\00\00\00" ;; the header |
| 28 |
|
| 29 |
"\04\04\01" ;; table section with 1 entry |
| 30 |
"\70\00\00" ;; no max, minimum 0, funcref |
| 31 |
|
| 32 |
"\09\08\01" ;; Element section with 1 entry |
| 33 |
"\02\00" ;; Table index 0, using flag 02 encoding |
| 34 |
"\41\00\0b\00\00" ;; offset and no elements |
| 35 |
) |