summaryrefslogtreecommitdiff
path: root/misc/cgo/test/exports.go
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cgo/test/exports.go')
-rw-r--r--misc/cgo/test/exports.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/misc/cgo/test/exports.go b/misc/cgo/test/exports.go
new file mode 100644
index 000000000..f96c60b00
--- /dev/null
+++ b/misc/cgo/test/exports.go
@@ -0,0 +1,12 @@
+// Copyright 2011 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package cgotest
+
+import "C"
+
+//export ReturnIntLong
+func ReturnIntLong() (int, C.long) {
+ return 1, 2
+}