diff --git a/test/escape4.go b/test/escape4.go index e381248476..710eb75126 100644 --- a/test/escape4.go +++ b/test/escape4.go @@ -38,11 +38,7 @@ func f2() {} // ERROR "can inline f2" func f3() { panic(1) } // ERROR "can inline f3" "1 escapes to heap" func f4() { recover() } -// TODO(cuonglm): remove f5, f6 //go:noinline and update the error message -// once GOEXPERIMENT=nounified is gone. - -//go:noinline -func f5() *byte { +func f5() *byte { // ERROR "can inline f5" type T struct { x [1]byte } @@ -50,8 +46,7 @@ func f5() *byte { return &t.x[0] } -//go:noinline -func f6() *byte { +func f6() *byte { // ERROR "can inline f6" type T struct { x struct { y byte