Initial commit: Go 1.23 release state
This commit is contained in:
17
test/fixedbugs/issue27836.dir/Þfoo.go
Normal file
17
test/fixedbugs/issue27836.dir/Þfoo.go
Normal file
@@ -0,0 +1,17 @@
|
||||
// Copyright 2022 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 Þfoo
|
||||
|
||||
var ÞbarV int = 101
|
||||
|
||||
func Þbar(x int) int {
|
||||
defer func() { ÞbarV += 3 }()
|
||||
return Þblix(x)
|
||||
}
|
||||
|
||||
func Þblix(x int) int {
|
||||
defer func() { ÞbarV += 9 }()
|
||||
return ÞbarV + x
|
||||
}
|
||||
17
test/fixedbugs/issue27836.dir/Þmain.go
Normal file
17
test/fixedbugs/issue27836.dir/Þmain.go
Normal file
@@ -0,0 +1,17 @@
|
||||
// Copyright 2022 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 (
|
||||
"fmt"
|
||||
|
||||
"./Þfoo"
|
||||
Þblix "./Þfoo"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Printf("Þfoo.Þbar(33) returns %v\n", Þfoo.Þbar(33))
|
||||
fmt.Printf("Þblix.Þbar(33) returns %v\n", Þblix.Þbar(33))
|
||||
}
|
||||
Reference in New Issue
Block a user