tools/corrosion/test/hostbuild/hostbuild/src/main.rs
branchtransitional_engine
changeset 16050 6a3dc15b78b9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/corrosion/test/hostbuild/hostbuild/src/main.rs	Wed Aug 28 15:31:51 2024 +0200
@@ -0,0 +1,13 @@
+use std::os::raw::c_char;
+
+extern "C" {
+    fn c_function(name: *const c_char);
+}
+
+fn main() {
+    println!("ok");
+    let name = b"Rust Hostbuild\0";
+    unsafe {
+        c_function(name.as_ptr() as _);
+    }
+}