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

15 lines · 282 bytes Raw Blame History
1// Links omega_bsum (the v1 symbol) from the v1 package; against the v2 library this must fail to link.
2package main
3
4import (
5 "os"
6 "unsafe"
7
8 om "omegacaller/omeganative"
9)
10
11func main() {
12 var r uint64
13 d := [4]byte{}
14 os.Exit(int(om.Omega_bsum(&r, unsafe.Pointer(&d[0]), 4)))
15}