summaryrefslogtreecommitdiff
path: root/src/cmd/cgo/internal/testcarchive/testdata/libgo9/a.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/cgo/internal/testcarchive/testdata/libgo9/a.go')
-rw-r--r--src/cmd/cgo/internal/testcarchive/testdata/libgo9/a.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cmd/cgo/internal/testcarchive/testdata/libgo9/a.go b/src/cmd/cgo/internal/testcarchive/testdata/libgo9/a.go
new file mode 100644
index 0000000000..acb08d90ec
--- /dev/null
+++ b/src/cmd/cgo/internal/testcarchive/testdata/libgo9/a.go
@@ -0,0 +1,14 @@
+// Copyright 2023 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 "runtime"
+
+import "C"
+
+func main() {}
+
+//export GoF
+func GoF() { runtime.GC() }