Skip to content

Commit 1e607d0

Browse files
danbevMylesBorins
authored andcommitted
test: add source for test.wasm
The original commit 74e7a4a ("test: add basic WebAssembly test") references the source for test.wasm and while there are tools to go from wasm to wat but having the source viewable is helpful I think. PR-URL: #21082 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Lance Ball <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: John-David Dalton <[email protected]>
1 parent 28f2dcb commit 1e607d0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

test/fixtures/test.wasm

6 Bytes
Binary file not shown.

test/fixtures/test.wat

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
;; Compiled using the WebAssembly Tootkit (https://github.com/WebAssembly/wabt)
2+
;; $ wat2wasm test.wat -o test.wasm
3+
(module
4+
(func $add (export "add") (param $first i32) (param $second i32) (result i32)
5+
get_local $first
6+
get_local $second
7+
(i32.add)
8+
)
9+
(export "addTwo" (func $add))
10+
)

0 commit comments

Comments
 (0)