aboutsummaryrefslogtreecommitdiff
path: root/test/fixedbugs/issue27557.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixedbugs/issue27557.go')
-rw-r--r--test/fixedbugs/issue27557.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/fixedbugs/issue27557.go b/test/fixedbugs/issue27557.go
index e35ab5a169..f609b27faa 100644
--- a/test/fixedbugs/issue27557.go
+++ b/test/fixedbugs/issue27557.go
@@ -8,19 +8,19 @@ package p
var sink interface{}
-func _() {
+func f1() {
var t T
f := t.noescape // ERROR "t.noescape does not escape"
f()
}
-func _() {
+func f2() {
var t T // ERROR "moved to heap"
f := t.escape // ERROR "t.escape does not escape"
f()
}
-func _() {
+func f3() {
var t T // ERROR "moved to heap"
f := t.returns // ERROR "t.returns does not escape"
sink = f()