mirror of
https://github.com/golang/go
synced 2024-11-25 14:47:57 -07:00
8f618c1f53
Fixes #66575 Change-Id: I03f4d4577b88ad0a92b260b2efd0cb9fe5082b2f Reviewed-on: https://go-review.googlesource.com/c/go/+/575075 Reviewed-by: Robert Griesemer <gri@google.com> Reviewed-by: Keith Randall <khr@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
32 lines
434 B
Go
32 lines
434 B
Go
// 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 (
|
|
v0 = initv0()
|
|
v1 = initv1()
|
|
)
|
|
|
|
const c = "c"
|
|
|
|
func initv0() string {
|
|
println("initv0")
|
|
if c != "" { // have a dependency on c
|
|
return ""
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func initv1() string {
|
|
println("initv1")
|
|
return ""
|
|
}
|
|
|
|
func main() {
|
|
// do nothing
|
|
}
|