8d1e1c9fa6
On linux_aarch64 `res_search` is `__res_search@GLIBC_2.17`, which is different from the x86_64 counterpart `__res_search@GLIBC_2.2.5`. Also fix tests.
15 lines
222 B
Go
15 lines
222 B
Go
package main
|
|
|
|
// #include <stdio.h>
|
|
// char* hello() { return "hello, world"; }
|
|
// void phello() { printf("%s\n", hello()); }
|
|
import "C"
|
|
|
|
func main() {
|
|
C.phello()
|
|
}
|
|
|
|
func Chello() string {
|
|
return C.GoString(C.hello())
|
|
}
|