Initial commit: Go 1.23 release state
This commit is contained in:
11
test/fixedbugs/bug448.dir/pkg1.go
Normal file
11
test/fixedbugs/bug448.dir/pkg1.go
Normal file
@@ -0,0 +1,11 @@
|
||||
// Copyright 2012 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 pkg1
|
||||
|
||||
var x = make(chan interface{})
|
||||
|
||||
func Do() int {
|
||||
return (<-x).(int)
|
||||
}
|
||||
14
test/fixedbugs/bug448.dir/pkg2.go
Normal file
14
test/fixedbugs/bug448.dir/pkg2.go
Normal file
@@ -0,0 +1,14 @@
|
||||
// Copyright 2012 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.
|
||||
|
||||
// Issue 3843: inlining bug due to wrong receive operator precedence.
|
||||
|
||||
package pkg2
|
||||
|
||||
import "./pkg1"
|
||||
|
||||
func F() {
|
||||
pkg1.Do()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user