diff options
Diffstat (limited to 'tests/core/cgo/dylib_client.go')
-rw-r--r-- | tests/core/cgo/dylib_client.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/core/cgo/dylib_client.go b/tests/core/cgo/dylib_client.go new file mode 100644 index 00000000..7356d127 --- /dev/null +++ b/tests/core/cgo/dylib_client.go @@ -0,0 +1,10 @@ +package dylib + +/* +extern int foo(); +*/ +import "C" + +func Foo() int { + return int(C.foo()) +} |