aboutsummaryrefslogtreecommitdiff
path: root/tests/core/cgo/dylib_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/core/cgo/dylib_test.go')
-rw-r--r--tests/core/cgo/dylib_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/core/cgo/dylib_test.go b/tests/core/cgo/dylib_test.go
new file mode 100644
index 00000000..03aa1f36
--- /dev/null
+++ b/tests/core/cgo/dylib_test.go
@@ -0,0 +1,10 @@
+package dylib
+
+import "testing"
+
+func TestFoo(t *testing.T) {
+ want := 42
+ if got := Foo(); got != want {
+ t.Errorf("got %d ; want %d", got, want)
+ }
+}