/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue27732a.go
23 строки
472 B
Matthew Dempsky
test: remove -newescape from regress tests
28 авг 2019, 22:27
28 авг 2019, 22:27
501b786
Код
Авторство
О чём код?
// errorcheck -0 -m -l -smallframes // Copyright 2019 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. // This checks that the -smallframes flag forces a large variable to heap. package main const ( bufferLen = 200000 ) type kbyte []byte type circularBuffer [bufferLen]kbyte var sink byte func main() { var c circularBuffer // ERROR "moved to heap: c$" sink = c[0][0] }