/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue22200b.go
31 строка
655 B
dorbmon
cmd/compile: forward small Load through Move to avoid redundant copies
11 мар 2026, 06:06
11 мар 2026, 06:06
38ac657
Код
Авторство
О чём код?
// errorcheck //go:build !386 && !amd64p32 && !arm && !mips && !mipsle // Copyright 2017 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 p func f3(x *[1 << 31]byte) byte { // GC_ERROR "stack frame too large" sum := byte(0) for _, b := range *x { sum += b } return sum } func f4(x *[1 << 32]byte) byte { // GC_ERROR "stack frame too large" sum := byte(0) for _, b := range *x { sum += b } return sum } func f5(x *[1 << 33]byte) byte { // GC_ERROR "stack frame too large" sum := byte(0) for _, b := range *x { sum += b } return sum }