blob: e283832c3b1731ca64d76e9f8e3909c978a4a06e [file] [log] [blame]
Chris Manghane260aa0a2014-03-20 11:46:45 -07001// 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
9package p
10
11type S struct {
12 F int
13}
14
15var M = map[string]S{
16 "a": { F: 1 },
17}
18
19var P = M["a"]
20
21var F = P.F