aboutsummaryrefslogtreecommitdiff
path: root/test/fixedbugs/issue27836.dir/Þfoo.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixedbugs/issue27836.dir/Þfoo.go')
-rw-r--r--test/fixedbugs/issue27836.dir/Þfoo.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/fixedbugs/issue27836.dir/Þfoo.go b/test/fixedbugs/issue27836.dir/Þfoo.go
new file mode 100644
index 0000000000..ea6be0f49f
--- /dev/null
+++ b/test/fixedbugs/issue27836.dir/Þfoo.go
@@ -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
+}