Plan 9 from Bell Labs’s /usr/web/sources/contrib/stallion/root/arm/go/test/fixedbugs/issue4879.dir/a.go

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


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{}),
	}
}


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].