/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue16306.go
15 строк
314 B
Keith Randall
cmd/compile: allow unsafe.Pointer(nil) as static data
16 авг 2016, 20:47
16 авг 2016, 20:47
6421479
Код
Авторство
О чём код?
// compile // Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import "unsafe" var x = unsafe.Pointer(uintptr(0)) func main() { _ = map[unsafe.Pointer]int{unsafe.Pointer(uintptr(0)): 0} }