1
0
mirror of https://github.com/golang/go synced 2024-11-23 04:50:06 -07:00
go/test/fixedbugs/issue4879.dir/a.go

34 lines
466 B
Go
Raw Normal View History

package a
import (
"unsafe"
)
type Collection struct {
root unsafe.Pointer
}
type nodeLoc struct{}
type slice []int
type maptype map[int]int
func MakePrivateCollection() *Collection {
return &Collection{
root: unsafe.Pointer(&nodeLoc{}),
}
}
func MakePrivateCollection2() *Collection {
return &Collection{
root: unsafe.Pointer(&slice{}),
}
}
func MakePrivateCollection3() *Collection {
return &Collection{
root: unsafe.Pointer(&maptype{}),
}
}