aboutsummaryrefslogtreecommitdiff
path: root/tests/core/cgo/foo.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/core/cgo/foo.go')
-rw-r--r--tests/core/cgo/foo.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/core/cgo/foo.go b/tests/core/cgo/foo.go
new file mode 100644
index 00000000..4403a51c
--- /dev/null
+++ b/tests/core/cgo/foo.go
@@ -0,0 +1,8 @@
+package main
+
+// void foo();
+import "C"
+
+func main() {
+ C.foo()
+}