Lines Matching full:mapindex
20 // Test implicit conversions in MapIndex and SetMapIndex.
30 if n := mv.MapIndex(ValueOf(1)).Interface().(int); n != 2 {
31 t.Errorf("#1 MapIndex(1) = %d", n)
43 if n := mv.MapIndex(ValueOf(1)).Interface().(int); n != 2 {
44 t.Errorf("#2 MapIndex(1) = %d", n)
56 if n := mv.MapIndex(ValueOf(1)).Interface().(int); n != 2 {
57 t.Errorf("#3 MapIndex(1) = %d", n)
69 if n := mv.MapIndex(ValueOf(1)).Interface().(int); n != 2 {
70 t.Errorf("#4 MapIndex(1) = %d", n)
84 if p := mv.MapIndex(ValueOf(b1)).Elem().Pointer(); p != uintptr(unsafe.Pointer(b2)) {
85 t.Errorf("#5 MapIndex(b1) = %#x want %p", p, b2)
99 if p := mv.MapIndex(ValueOf(c1)).Pointer(); p != ValueOf(c2).Pointer() {
100 t.Errorf("#6 MapIndex(c1) = %#x want %p", p, c2)
118 if p := mv.MapIndex(ValueOf(b1)).Pointer(); p != uintptr(unsafe.Pointer(b2)) {
119 t.Errorf("#7 MapIndex(b1) = %#x want %p", p, b2)