1
Fork 0
hermetic_cc_toolchain/test/hello.go

19 lines
269 B
Go

package main
import (
_ "github.com/mattn/go-sqlite3"
)
// #include <stdio.h>
// char* hello() { return "hello, world\n"; }
// void printhello() { printf(hello()); }
import "C"
func main() {
C.printhello()
}
func chello() string {
return C.GoString(C.hello())
}