Add 'crates/wiggle/' from commit 'cd484e49932d8dd8f1bd1a002e0717ad8bff07fb'
git-subtree-dir: crates/wiggle git-subtree-mainline:2ead747f48git-subtree-split:cd484e4993
This commit is contained in:
14
crates/wiggle/tests/atoms.witx
Normal file
14
crates/wiggle/tests/atoms.witx
Normal file
@@ -0,0 +1,14 @@
|
||||
(use "errno.witx")
|
||||
|
||||
(typename $alias_to_float f32)
|
||||
|
||||
(module $atoms
|
||||
(@interface func (export "int_float_args")
|
||||
(param $an_int u32)
|
||||
(param $an_float f32)
|
||||
(result $error $errno))
|
||||
(@interface func (export "double_int_return_float")
|
||||
(param $an_int u32)
|
||||
(result $error $errno)
|
||||
(result $doubled_it $alias_to_float))
|
||||
)
|
||||
Reference in New Issue
Block a user