1
0
mirror of https://github.com/golang/go synced 2024-11-23 17:00:07 -07:00
go/test/fixedbugs/issue27836.dir/Äfoo.go
Than McIntosh 31d19c0ba3 test: add testcase for gccgo compile failure
Also includes a small tweak to test/run.go to allow package names
with Unicode letters (as opposed to just ASCII chars).

Updates #27836

Change-Id: Idbf0bdea24174808cddcb69974dab820eb13e521
Reviewed-on: https://go-review.googlesource.com/138075
Reviewed-by: Cherry Zhang <cherryyz@google.com>
2018-09-27 15:01:24 +00:00

14 lines
192 B
Go

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
}