interplane.Get Omega
Read in your language

omega-bridge

Omega-first language interoperability: checked conversion backends and native language bindings

Brought by drakestapleton

branch main Branches Tags History

omega-bridge / tests / native / v2 / v1use / use.rs

8 lines · 287 bytes Raw Blame History
1// Links omega_bsum (the v1 symbol) from the v1 module; against the v2 library this must fail to link.
2mod omega_native;
3fn main() {
4 let mut r: u64 = 0;
5 let d = [0u8; 4];
6 let s = unsafe { omega_native::omega_bsum(&mut r, d.as_ptr(), 4) };
7 std::process::exit(s as i32);
8}