summaryrefslogtreecommitdiff
path: root/libbindgen/tests/headers
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2016-12-29 18:03:01 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2016-12-29 18:03:01 +0100
commit17e20030ea99c7ad036af1aa65110f315f13c61c (patch)
tree205748e1082958f4a33ab5071e42e6e2d5fe81b1 /libbindgen/tests/headers
parentf7a328a2406e98d93a10453c613f675ce51471a9 (diff)
codegen: Use the canonical type to determine whether we should convert to a pointer an argument.
Fixes https://github.com/Yamakaky/rust-bindgen/issues/407
Diffstat (limited to 'libbindgen/tests/headers')
-rw-r--r--libbindgen/tests/headers/typedefd-array-as-function-arg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libbindgen/tests/headers/typedefd-array-as-function-arg.h b/libbindgen/tests/headers/typedefd-array-as-function-arg.h
new file mode 100644
index 00000000..93790591
--- /dev/null
+++ b/libbindgen/tests/headers/typedefd-array-as-function-arg.h
@@ -0,0 +1,3 @@
+// foo.h
+typedef float myVector3[3];
+void modifyVectorFunc(myVector3 v);