Source file test/fixedbugs/issue55242.go

     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 55242: gofrontend crash calling function that returns
     8  // trailing empty struct.
     9  
    10  package p
    11  
    12  func F1() (int, struct{}) {
    13  	return 0, struct{}{}
    14  }
    15  
    16  func F2() {
    17  	F1()
    18  }
    19  

View as plain text