Fixes #2225
R=rsc, nigeltao, dave
CC=bradfitz, golang-dev, mikioh.mikioh
https://golang.org/cl/
4972056
case OCONVIFACE:
case OCONVNOP:
case ODOT:
+ case ODOTMETH: // treat recv.meth as a value with recv in it, only happens in ODEFER and OPROC
+ // iface.method already leaks iface in esccall, no need to put in extra ODOTINTER edge here
case ODOTTYPE:
case ODOTTYPE2:
case OSLICE:
return b.ii
}
+func goLeak(b *Bar) { // ERROR "leaking param: NAME-b"
+ go b.NoLeak()
+}
+
type Bar2 struct {
i [12]int
ii []int
m.M()
}
+func foo64b(m M) { // ERROR "leaking param: NAME-m"
+ defer m.M()
+}
+
type MV int
func (MV) M() {}