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