summaryrefslogtreecommitdiffstats
path: root/misc/cgo/testcarchive/testdata/libgo7/sink.go
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cgo/testcarchive/testdata/libgo7/sink.go')
-rw-r--r--misc/cgo/testcarchive/testdata/libgo7/sink.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/misc/cgo/testcarchive/testdata/libgo7/sink.go b/misc/cgo/testcarchive/testdata/libgo7/sink.go
new file mode 100644
index 0000000..d61638b
--- /dev/null
+++ b/misc/cgo/testcarchive/testdata/libgo7/sink.go
@@ -0,0 +1,17 @@
+// Copyright 2019 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 main
+
+import "C"
+
+var sink []byte
+
+//export GoFunction7
+func GoFunction7() {
+ sink = make([]byte, 4096)
+}
+
+func main() {
+}