diff options
Diffstat (limited to 'src/cmd/go/testdata/norunexample/example_test.go')
-rw-r--r-- | src/cmd/go/testdata/norunexample/example_test.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cmd/go/testdata/norunexample/example_test.go b/src/cmd/go/testdata/norunexample/example_test.go new file mode 100644 index 000000000..e158305a6 --- /dev/null +++ b/src/cmd/go/testdata/norunexample/example_test.go @@ -0,0 +1,11 @@ +package pkg_test + +import "os" + +func init() { + os.Stdout.Write([]byte("File with non-runnable example was built.\n")) +} + +func Example_test() { + // This test will not be run, it has no "Output:" comment. +} |