Skip to content
This repository has been archived by the owner on May 2, 2018. It is now read-only.

Commit

Permalink
test: add extra test case for issue 7590
Browse files Browse the repository at this point in the history
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/78040043
  • Loading branch information
Chris Manghane committed Mar 20, 2014
1 parent ca2cb51 commit 260aa0a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/fixedbugs/issue7590.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// compile

// Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// Issue 7590: gccgo incorrectly traverses nested composite literals.

package p

type S struct {
F int
}

var M = map[string]S{
"a": { F: 1 },
}

var P = M["a"]

var F = P.F

0 comments on commit 260aa0a

Please sign in to comment.