maps.test 234 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 // RUN: llgoi < %s | FileCheck %s m := make(map[int]int) m // CHECK: map[] m[0] // CHECK: 0 m0, ok := m[0] m0 // CHECK: 0 ok // CHECK: false func() { m[0] = 1 }() m[0] // CHECK: 1 m0, ok = m[0] m0 // CHECK: 1 ok // CHECK: true