Source file test/fixedbugs/issue80543.go

     1  // compile -d=ssa/check/on
     2  
     3  // Copyright 2026 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  package p
     8  
     9  type S struct {
    10  	i int
    11  	a [1]struct{}
    12  }
    13  
    14  func foo(f func(S)) {
    15  	defer f(func() S {
    16  		return S{0, [1]struct{}{}}
    17  	}())
    18  }
    19  

View as plain text