Add proptests for structs with mixed members (copy/noncopy)

This commit is contained in:
Jakub Konka
2020-02-23 18:36:10 +01:00
committed by Jakub Konka
parent 7a4c881409
commit 694cf117bb
2 changed files with 106 additions and 0 deletions

View File

@@ -11,6 +11,11 @@
(field $first (@witx const_pointer s32))
(field $second (@witx const_pointer s32))))
(typename $pair_int_and_ptr
(struct
(field $first (@witx const_pointer s32))
(field $second s32)))
(module $structs
(@interface func (export "sum_of_pair")
(param $an_pair $pair_ints)
@@ -20,4 +25,8 @@
(param $an_pair $pair_int_ptrs)
(result $error $errno)
(result $doubled s64))
(@interface func (export "sum_of_int_and_ptr")
(param $an_pair $pair_int_and_ptr)
(result $error $errno)
(result $double s64))
)