summaryrefslogtreecommitdiffstats
path: root/tests/rust/array.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/rust/array.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/rust/array.rs b/tests/rust/array.rs
new file mode 100644
index 0000000..fb33537
--- /dev/null
+++ b/tests/rust/array.rs
@@ -0,0 +1,7 @@
+#[repr(C)]
+enum Foo {
+ A([f32; 20])
+}
+
+#[no_mangle]
+pub extern "C" fn root(a: Foo) {}