/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue42703.go
19 строк
340 B
Matthew Dempsky
cmd/compile: fix miscompilation during inlining
19 ноя 2020, 01:24
19 ноя 2020, 01:24
35693d0
Код
Авторство
О чём код?
// run // Copyright 2020 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 var ok [2]bool func main() { f()() if !ok[0] || !ok[1] { panic("FAIL") } } func f() func() { ok[0] = true; return g } func g() { ok[1] = true }