/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue45175.go
29 строк
386 B
Keith Randall
cmd/compile: disable shortcircuit optimization for intertwined phi values
24 мар 2021, 20:54
24 мар 2021, 20:54
771c57e
Код
Авторство
О чём код?
// run // Copyright 2021 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 //go:noinline func f(c bool) int { b := true x := 0 y := 1 for b { b = false y = x x = 2 if c { return 3 } } return y } func main() { if got := f(false); got != 0 { panic(got) } }