mirror of
https://github.com/github/codeql.git
synced 2026-01-31 15:22:57 +01:00
Add a regression test.
This commit is contained in:
@@ -14,3 +14,10 @@ func test3(r io.Reader) {
|
||||
data, _ := ioutil.ReadAll(r)
|
||||
ignore(make([]byte, len(data)+1)) // NOT OK
|
||||
}
|
||||
|
||||
func test4(r io.Reader, ws []io.Writer) {
|
||||
mw := io.MultiWriter(ws...)
|
||||
ignore(make([]error, len(ws)+1)) // OK
|
||||
data, _ := ioutil.ReadAll(r)
|
||||
mw.Write(data)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user