/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue77815.go
20 строк
387 B
Francisco Ferraz
cmd/compile: fix internal compiler error: bad write barrier type
28 фев 2026, 07:20
28 фев 2026, 07:20
244b156
Код
Авторство
О чём код?
// compile // Copyright 2026 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 type S struct { a [4]struct{} f chan int } func f(p *S) { var s S // Memory write that requires a write barrier should work // with structs having zero-sized arrays of non-zero elements. *p = s }