Source file test/fixedbugs/gcc101994.go

     1  // compile
     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  
     7  // https://gcc.gnu.org/PR101994
     8  // gccgo compiler crash with zero-sized result.
     9  
    10  package p
    11  
    12  type Empty struct{}
    13  
    14  func F() (int, Empty) {
    15  	return 0, Empty{}
    16  }
    17  

View as plain text