1
hermetic_cc_toolchain/test/go/hello.go
Motiejus Jakštys ebbf499208 move golang tests to its own directory
this prepares for more test binaries.
2022-02-03 15:24:26 +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())
}