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.zig

7 lines · 258 bytes Raw Blame History
1// Links omega_bsum (the v1 symbol) from the v1 file; against the v2 library this must fail to link.
2const om = @import("omega_native.zig");
3pub fn main() u8 {
4 var r: u64 = 0;
5 const d = [_]u8{0} ** 4;
6 return @intCast(om.omega_bsum(&r, &d, 4));
7}