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