omega-bridge
Omega-first language interoperability: checked conversion backends and native language bindings
Brought by drakestapleton
omega-bridge / tests / native / v2 / v1use / use.zig
| 1 | // Links omega_bsum (the v1 symbol) from the v1 file; against the v2 library this must fail to link. |
| 2 | const om = @import("omega_native.zig"); |
| 3 | pub fn main() u8 { |
| 4 | var r: u64 = 0; |
| 5 | const d = [_]u8{0} ** 4; |
| 6 | return @intCast(om.omega_bsum(&r, &d, 4)); |
| 7 | } |