/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue49145.go
27 строк
357 B
wdvxdr
cmd/compile: fix inlining labeled switch statements
25 окт 2021, 19:07
25 окт 2021, 19:07
c6e82e5
Код
Авторство
О чём код?
// 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 func f(j int) { loop: switch j { case 1: break loop default: println(j) } } func main() { loop: for j := 0; j < 5; j++ { f(j) if j == 3 { break loop } } }