2018-06-30 09:23:31 +03:00

15 lines
180 B
Go

package pkg
import (
"log"
"unsafe"
)
func F() {
x := 123 // of type int
p := unsafe.Pointer(&x)
pp := &p // of type *unsafe.Pointer
p = unsafe.Pointer(pp)
log.Print(p)
}