/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue78641.go
25 строк
378 B
Cuong Manh Le
cmd/compile: handle min integer step in loop
13 апр 2026, 21:56
13 апр 2026, 21:56
e7c75c3
Код
Авторство
О чём код?
// run // 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 main const ( intSize = 32 << (^uint(0) >> 63) minInt = -1 << (intSize - 1) ) func main() { f() } func f() { for i := 0; true; i += minInt { if i < 0 { return } } panic("unreachable") }