github.com/prattmic/llgo-embedded@v0.0.0-20150820070356-41cfecea0e1e/test/llgoi/maps.test (about)

     1  // RUN: llgoi < %s | FileCheck %s
     2  
     3  m := make(map[int]int)
     4  // CHECK: m map[int]int = map[]
     5  
     6  m[0]
     7  // CHECK: #0 int = 0
     8  
     9  _, _ := m[0]
    10  // CHECK: #0 int = 0
    11  // CHECK: #1 bool = false
    12  
    13  func() {
    14  	m[0] = 1
    15  }()
    16  
    17  m[0]
    18  // CHECK: #0 int = 1
    19  
    20  _, _ := m[0]
    21  // CHECK: #0 int = 1
    22  // CHECK: #1 bool = true