* test coverage: make sure aliases to builtins get tested

* trivial support for handles

* add tests for handles
This commit is contained in:
Pat Hickey
2020-02-27 03:57:36 -07:00
committed by GitHub
parent 10dcaeeab4
commit 90182bc5da
6 changed files with 166 additions and 5 deletions

12
tests/handles.witx Normal file
View File

@@ -0,0 +1,12 @@
(use "errno.witx")
(typename $fd (handle))
(module $handle_examples
(@interface func (export "fd_create")
(result $error $errno)
(result $fd $fd))
(@interface func (export "fd_consume")
(param $fd $fd)
(result $error $errno))
)