2
;;; Test struct_in_union
7
(test-start "struct_in_union")
9
(test-module 'c-wrapper)
11
(c-include "./struct_in_union.h")
16
(ref (ref (ref (make <c-struct:struct_in_union>) 'u) 's1) 'v1)))
21
(let ((struct (make <c-struct:struct_in_union>)))
22
(set! (ref (ref (ref struct 'u) 's1) 'v1) 1)
23
(ref (ref (ref struct 'u) 's1) 'v1))))
25
(test "a union in an array"
28
(let ((array (make (<c-struct:struct_in_union> 3))))
29
(set! (ref (ref (ref (ref array 1) 'u) 's1) 'v1) 2)
30
(ref (ref (ref (ref array 1) 'u) 's1) 'v1))))