forked from OSchip/llvm-project
23 lines
289 B
Plaintext
23 lines
289 B
Plaintext
// RUN: llgoi < %s | FileCheck %s
|
|
|
|
m := make(map[int]int)
|
|
// CHECK: m map[int]int = map[]
|
|
|
|
m[0]
|
|
// CHECK: #0 int = 0
|
|
|
|
_, _ := m[0]
|
|
// CHECK: #0 int = 0
|
|
// CHECK: #1 bool = false
|
|
|
|
func() {
|
|
m[0] = 1
|
|
}()
|
|
|
|
m[0]
|
|
// CHECK: #0 int = 1
|
|
|
|
_, _ := m[0]
|
|
// CHECK: #0 int = 1
|
|
// CHECK: #1 bool = true
|