summaryrefslogtreecommitdiffstats
path: root/tests/rust/zst.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rust/zst.rs')
-rw-r--r--tests/rust/zst.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/rust/zst.rs b/tests/rust/zst.rs
new file mode 100644
index 0000000..8a3e467
--- /dev/null
+++ b/tests/rust/zst.rs
@@ -0,0 +1,10 @@
+#[repr(C)]
+pub struct TraitObject {
+ pub data: *mut (),
+ pub vtable: *mut (),
+}
+
+#[no_mangle]
+pub extern "C" fn root(ptr: *const (), t: TraitObject) -> *mut () {
+ std::ptr::null_mut()
+}