aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/ffi_spec.lua
diff options
context:
space:
mode:
authorluukvbaal <31730729+luukvbaal@users.noreply.github.com>2023-03-23 12:58:50 +0100
committerGitHub <noreply@github.com>2023-03-23 04:58:50 -0700
commitb02880593e281ce44661ce22e9391edfe921e47e (patch)
treeb0a9d5b0222f0184bd53f80193654060de3da46f /test/functional/lua/ffi_spec.lua
parent4e4203f71b0b9bb2ca4ad9abd2fbf4ea1deaf9a6 (diff)
downloadrneovim-b02880593e281ce44661ce22e9391edfe921e47e.tar.gz
rneovim-b02880593e281ce44661ce22e9391edfe921e47e.tar.bz2
rneovim-b02880593e281ce44661ce22e9391edfe921e47e.zip
build(win): export extern symbols for use in FFI #22756
Makes `extern` variables accessible through ffi on Windows. Follow-up to https://github.com/neovim/neovim/pull/15999
Diffstat (limited to 'test/functional/lua/ffi_spec.lua')
-rw-r--r--test/functional/lua/ffi_spec.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/lua/ffi_spec.lua b/test/functional/lua/ffi_spec.lua
index 18b13a8959..c492c1e765 100644
--- a/test/functional/lua/ffi_spec.lua
+++ b/test/functional/lua/ffi_spec.lua
@@ -63,5 +63,14 @@ describe('ffi.cdef', function()
nil
)
]=])
+
+ -- Check that extern symbols are exported and accessible
+ eq(true, exec_lua[[
+ local ffi = require('ffi')
+
+ ffi.cdef('uint64_t display_tick;')
+
+ return ffi.C.display_tick >= 0
+ ]])
end)
end)