aboutsummaryrefslogtreecommitdiff
path: root/tests/legacy/cgo_pure/cgo_pure_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/legacy/cgo_pure/cgo_pure_test.go')
-rw-r--r--tests/legacy/cgo_pure/cgo_pure_test.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/legacy/cgo_pure/cgo_pure_test.go b/tests/legacy/cgo_pure/cgo_pure_test.go
new file mode 100644
index 00000000..d8c3e5cb
--- /dev/null
+++ b/tests/legacy/cgo_pure/cgo_pure_test.go
@@ -0,0 +1,17 @@
+package cgo_pure_test
+
+import (
+ "fmt"
+ "testing"
+
+ "github.com/bazelbuild/rules_go/tests/cgo_pure"
+)
+
+var Expect = ""
+
+func TestValue(t *testing.T) {
+ got := fmt.Sprintf("%d", cgo_pure.Value)
+ if got != Expect {
+ t.Errorf("got %q; want %q", got, Expect)
+ }
+}