omega-bridge
Omega-first language interoperability: checked conversion backends and native language bindings
Brought by drakestapleton
omega-bridge / tests / native / v2 / v1use / use.go
| 1 | // Links omega_bsum (the v1 symbol) from the v1 package; against the v2 library this must fail to link. |
| 2 | package main |
| 3 | |
| 4 | import ( |
| 5 | "os" |
| 6 | "unsafe" |
| 7 | |
| 8 | om "omegacaller/omeganative" |
| 9 | ) |
| 10 | |
| 11 | func main() { |
| 12 | var r uint64 |
| 13 | d := [4]byte{} |
| 14 | os.Exit(int(om.Omega_bsum(&r, unsafe.Pointer(&d[0]), 4))) |
| 15 | } |