3 // Tests of method promotion logic.
5 type A struct{ magic int }
16 type B struct{ magic int }
33 type impl struct{ magic int }
47 func assert(cond bool) {
70 if addr().y() != &theC.A {
87 // non-addressable value
89 // value().y() // not in method set