diff options
Diffstat (limited to 'misc/cgo/test/exports.go')
-rw-r--r-- | misc/cgo/test/exports.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/misc/cgo/test/exports.go b/misc/cgo/test/exports.go index f96c60b00..4fe1703a6 100644 --- a/misc/cgo/test/exports.go +++ b/misc/cgo/test/exports.go @@ -5,8 +5,14 @@ package cgotest import "C" +import "runtime" //export ReturnIntLong func ReturnIntLong() (int, C.long) { return 1, 2 } + +//export gc +func gc() { + runtime.GC() +} |