mirror of
https://github.com/golang/go
synced 2024-11-18 23:14:43 -07:00
a3f91d6be4
Steal alan's parallel analysis-graph-running code from multichecker. Facts are still not supported. Change-Id: I22f83375d7a314b49d4f458d6dd40c33febc795b Reviewed-on: https://go-review.googlesource.com/c/161659 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
12 lines
280 B
Go
12 lines
280 B
Go
package analyzer
|
|
|
|
import (
|
|
"sync"
|
|
"testing"
|
|
)
|
|
|
|
func Testbad(t *testing.T) { //@diag("", "tests", "Testbad has malformed name: first letter after 'Test' must not be lowercase")
|
|
var x sync.Mutex
|
|
_ = x //@diag("x", "copylocks", "assignment copies lock value to _: sync.Mutex")
|
|
}
|