Debian Codegraph @

staticcheck/sa3001/testdata/go1.0/CheckBenchmarkN/CheckBenchmarkN.go

raw
1 package foo
2
3 import "testing"
4
5 func foo() {
6 var b *testing.B
7 b.N = 1 //@ diag(`should not assign to b.N`)
8 _ = b
9 }