go source for verification 2026-05-22
This commit is contained in:
7
test/fixedbugs/issue5105.dir/a.go
Normal file
7
test/fixedbugs/issue5105.dir/a.go
Normal file
@@ -0,0 +1,7 @@
|
||||
// Copyright 2013 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 a
|
||||
|
||||
var A = [2]string{"hello", "world"}
|
||||
15
test/fixedbugs/issue5105.dir/b.go
Normal file
15
test/fixedbugs/issue5105.dir/b.go
Normal file
@@ -0,0 +1,15 @@
|
||||
// Copyright 2013 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
|
||||
|
||||
import "./a"
|
||||
|
||||
var B = [2]string{"world", "hello"}
|
||||
|
||||
func main() {
|
||||
if a.A[0] != B[1] {
|
||||
panic("bad hello")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user