diff options
Diffstat (limited to 'tests/core/cgo/objc/sub_darwin.go')
-rw-r--r-- | tests/core/cgo/objc/sub_darwin.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/core/cgo/objc/sub_darwin.go b/tests/core/cgo/objc/sub_darwin.go new file mode 100644 index 00000000..5b780307 --- /dev/null +++ b/tests/core/cgo/objc/sub_darwin.go @@ -0,0 +1,10 @@ +package objc + +/* +int sub(int a, int b); +*/ +import "C" + +func Sub(a, b int32) int32 { + return int32(C.sub(C.int(a), C.int(b))) +} |