/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue66585.go
25 строк
360 B
Cuong Manh Le
cmd/compile: add missing OASOP case in mayModifyPkgVar
02 апр 2024, 20:16
02 апр 2024, 20:16
5038ce8
Код
Авторство
О чём код?
// run // Copyright 2024 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 x = 0 var a = foo() var b = x func foo() int { x++ return x } func main() { if a != 1 { panic("unexpected a value") } if b != 1 { panic("unexpected b value") } }