structs implementing Copy are scaffolded out.

todo: need an unsafe method for casting pointers in order to validate
contents via recursive descent
This commit is contained in:
Pat Hickey
2020-01-28 15:45:52 -08:00
parent 373560b88a
commit 62e00434b0
6 changed files with 113 additions and 6 deletions

View File

@@ -14,6 +14,11 @@
$traffic
$sleeping))
(typename $pair_ints
(struct
(field $first s32)
(field $second s32)))
(module $foo
(@interface func (export "bar")
(param $an_int u32)
@@ -29,4 +34,9 @@
(param $an_int u32)
(result $error $errno)
(result $doubled_it f32))
(@interface func (export "sum_of_pair")
(param $an_pair $pair_ints)
(result $error $errno)
(result $doubled s64))
)