diff options
Diffstat (limited to 'libgo/go/cmd/go/testdata/script/test_bad_example.txt')
-rw-r--r-- | libgo/go/cmd/go/testdata/script/test_bad_example.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libgo/go/cmd/go/testdata/script/test_bad_example.txt b/libgo/go/cmd/go/testdata/script/test_bad_example.txt new file mode 100644 index 00000000000..1d147b663fe --- /dev/null +++ b/libgo/go/cmd/go/testdata/script/test_bad_example.txt @@ -0,0 +1,13 @@ +# Tests that invalid examples are ignored. +# Verifies golang.org/issue/35284 +go test x_test.go + +-- x_test.go -- +package x + +import "fmt" + +func ExampleThisShouldNotHaveAParameter(thisShouldntExist int) { + fmt.Println("X") + // Output: +}
\ No newline at end of file |