Sign in
go
/
gofrontend
/
6a7648c97c3e0cdbecbec7e760b30246521a6d90
/
.
/
libgo
/
go
/
cmd
/
go
/
testdata
/
script
/
test_bad_example.txt
blob: 1d147b663fe62af62ab320b7baa9516a6a14f833 [
file
] [
log
] [
blame
]
# 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:
}