-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add component-model-async/lower.wast test (#10103)
This is another piece of #9582 which I'm splitting out to make review easier. This test includes a minimal component which lowers an import with the `async` option. The rest of the changes fill in some TODOs to make the test pass. Signed-off-by: Joel Dice <[email protected]>
- Loading branch information
Showing
6 changed files
with
41 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
;;! component_model_async = true | ||
|
||
;; async lower | ||
(component | ||
(import "host-echo-u32" (func $foo (param "p1" u32) (result u32))) | ||
(core module $libc (memory (export "memory") 1)) | ||
(core instance $libc (instantiate $libc)) | ||
(core func $foo (canon lower (func $foo) async (memory $libc "memory"))) | ||
(core module $m | ||
(func (import "" "foo") (param i32 i32) (result i32)) | ||
) | ||
(core instance $i (instantiate $m (with "" (instance (export "foo" (func $foo)))))) | ||
) |