summaryrefslogtreecommitdiff
path: root/test/plugins/ffi/builder.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/plugins/ffi/builder.lua')
-rw-r--r--test/plugins/ffi/builder.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/plugins/ffi/builder.lua b/test/plugins/ffi/builder.lua
index 47e39db3..a8fc115b 100644
--- a/test/plugins/ffi/builder.lua
+++ b/test/plugins/ffi/builder.lua
@@ -40,6 +40,24 @@ function TEST(wanted)
end
TEST [[
+ ---@param a integer[][]
+ function m.test(a) end
+]][[
+ void test(int a[][]);
+]]
+
+TEST [[
+ ---@class ffi.namespace*.struct@A
+ ---@field b integer[]
+ ---@field c integer[]
+]] [[
+ struct A {
+ int b[5];
+ int c[];
+ };
+]]
+
+TEST [[
m.B = 5
m.A = 0
m.D = 7