Source file src/go/internal/gccgoimporter/testdata/escapeinfo.go

     1  // Test case for escape info in export data. To compile and extract .gox file:
     2  // gccgo -fgo-optimize-allocs -c escapeinfo.go
     3  // objcopy -j .go_export escapeinfo.o escapeinfo.gox
     4  
     5  package escapeinfo
     6  
     7  type T struct{ data []byte }
     8  
     9  func NewT(data []byte) *T {
    10  	return &T{data}
    11  }
    12  
    13  func (*T) Read(p []byte) {}
    14  

View as plain text