Skip to content

Commit

Permalink
test: add source for test.wasm
Browse files Browse the repository at this point in the history
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 <jasnell@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Lance Ball <lball@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
  • Loading branch information
danbev authored and MylesBorins committed Jun 6, 2018
1 parent 28f2dcb commit 1e607d0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Binary file modified test/fixtures/test.wasm
Binary file not shown.
10 changes: 10 additions & 0 deletions test/fixtures/test.wat
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
;; Compiled using the WebAssembly Tootkit (https://github.com/WebAssembly/wabt)
;; $ wat2wasm test.wat -o test.wasm
(module
(func $add (export "add") (param $first i32) (param $second i32) (result i32)
get_local $first
get_local $second
(i32.add)
)
(export "addTwo" (func $add))
)

0 comments on commit 1e607d0

Please sign in to comment.