summaryrefslogtreecommitdiffstats
path: root/tests/rust/include_item.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rust/include_item.rs')
-rw-r--r--tests/rust/include_item.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/rust/include_item.rs b/tests/rust/include_item.rs
new file mode 100644
index 0000000..9f07550
--- /dev/null
+++ b/tests/rust/include_item.rs
@@ -0,0 +1,10 @@
+#[repr(C)]
+struct A {
+ x: i32,
+ y: f32,
+}
+
+#[repr(C)]
+struct B {
+ data: A,
+}