/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue12944.go
13 строк
274 B
Matthew Dempsky
cmd/compile/internal/gc: reject invalid unsafe.Sizeof([0]byte{}[0])
15 окт 2015, 23:56
15 окт 2015, 23:56
67722fe
Код
Авторство
О чём код?
// errorcheck // Copyright 2015 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" const ( _ = unsafe.Sizeof([0]byte{}[0]) // ERROR "out of bounds" )