summaryrefslogtreecommitdiffstats
path: root/tests/017/ffi-misc.tl
blob: 1578cd2ccb9b50a61f146f012deea9cfaa2f3f0c (plain)
1
2
3
4
5
6
7
8
9
10
11
(load "../common")

(defvarl ar (ffi (array char)))

(defvarl zar (ffi (zarray char)))

(test (ffi-put "\x1234@@@" ar) #b'e188b4404040')

(test (ffi-put "\x1234@@@" zar) #b'e188b440404000')

(test (ffi-get (ffi-put "\x1234@@@" zar) zar) "\x1234@@@")