diff options
Diffstat (limited to 'gcc/testsuite/go.test/test/bench/regex-dna.go')
-rw-r--r-- | gcc/testsuite/go.test/test/bench/regex-dna.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/go.test/test/bench/regex-dna.go b/gcc/testsuite/go.test/test/bench/regex-dna.go index dc31db7..042d7f2 100644 --- a/gcc/testsuite/go.test/test/bench/regex-dna.go +++ b/gcc/testsuite/go.test/test/bench/regex-dna.go @@ -87,7 +87,7 @@ func countMatches(pat string, bytes []byte) int { } func main() { - bytes, err := ioutil.ReadFile("/dev/stdin") + bytes, err := ioutil.ReadAll(os.Stdin) if err != nil { fmt.Fprintf(os.Stderr, "can't read input: %s\n", err) os.Exit(2) |