Debian Codegraph @

test/fixedbugs/issue7590.go

raw
1 // compile
2
3 // Copyright 2014 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
6
7 // Issue 7590: gccgo incorrectly traverses nested composite literals.
8
9 package p
10
11 type S struct {
12 F int
13 }
14
15 var M = map[string]S{
16 "a": { F: 1 },
17 }
18
19 var P = M["a"]
20
21 var F = P.F