1// compile 2 3// Copyright 2023 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 61992, inconsistent 'mem' juggling in expandCalls 8 9package p 10 11type S1 struct { 12 a, b, c []int 13 i int 14} 15 16type S2 struct { 17 a, b []int 18 m map[int]int 19} 20 21func F(i int, f func(S1, S2, int) int) int { 22 return f( 23 S1{}, 24 S2{m: map[int]int{}}, 25 1<<i) 26} 27