1// Copyright 2015 The Go Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style 3// license that can be found in the LICENSE file. 4 5package a 6 7type m struct { 8 S string 9} 10 11var g = struct { 12 m 13 P string 14}{ 15 m{"a"}, 16 "", 17} 18 19type S struct{} 20 21func (s *S) M(p string) { 22 r := g 23 r.P = p 24} 25