1// compile -l 2 3// Copyright 2021 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 7package p 8 9func f() int { 10 var a, b struct { 11 s struct { 12 s struct { 13 byte 14 float32 15 } 16 } 17 } 18 _ = a 19 20 return func() int { 21 return func() int { 22 a = struct { 23 s struct { 24 s struct { 25 byte 26 float32 27 } 28 } 29 }{b.s} 30 return 0 31 }() 32 }() 33} 34 35func g() int { 36 var a, b struct { 37 s [1][1]struct { 38 byte 39 float32 40 } 41 } 42 _ = a 43 44 return func() int { 45 return func() int { 46 a = struct { 47 s [1][1]struct { 48 byte 49 float32 50 } 51 }{b.s} 52 return 0 53 }() 54 }() 55} 56