1
hermetic_cc_toolchain/test/hello.go
2022-01-28 15:57:22 +02:00

15 lines
230 B
Go

package main
// #include <stdio.h>
// char* hello() { return "hello, world"; }
// void printhello() { printf("%s\n", hello()); }
import "C"
func main() {
C.printhello()
}
func Chello() string {
return C.GoString(C.hello())
}