Source file test/fixedbugs/bug515.go

     1  // compile
     2  
     3  // Copyright 2022 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  // Caused a gofrontend crash.
     8  
     9  //go:build gccgo
    10  
    11  package p
    12  
    13  //go:notinheap
    14  type S1 struct{}
    15  
    16  type S2 struct {
    17  	r      interface{ Read([]byte) (int, error) }
    18  	s1, s2 []byte
    19  	p      *S1
    20  	n      uintptr
    21  }
    22  
    23  var V any = S2{}
    24  

View as plain text