summaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/src/xtestonly/f_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/go/testdata/src/xtestonly/f_test.go')
-rw-r--r--src/cmd/go/testdata/src/xtestonly/f_test.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cmd/go/testdata/src/xtestonly/f_test.go b/src/cmd/go/testdata/src/xtestonly/f_test.go
new file mode 100644
index 000000000..01f6e8373
--- /dev/null
+++ b/src/cmd/go/testdata/src/xtestonly/f_test.go
@@ -0,0 +1,12 @@
+package xtestonly_test
+
+import (
+ "testing"
+ "xtestonly"
+)
+
+func TestF(t *testing.T) {
+ if x := xtestonly.F(); x != 42 {
+ t.Errorf("f.F() = %d, want 42", x)
+ }
+}