Skip to content

Commit 2d12057

Browse files
committed
add noinline for newinliner
Change-Id: I038a591a6b70864416e391b052ebb8b3a7f4710f
1 parent 7fea0a5 commit 2d12057

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/devirtualization.go

+1
Original file line numberDiff line numberDiff line change
@@ -1267,6 +1267,7 @@ type namedBool bool
12671267

12681268
func (namedBool) M() {} // ERROR "can inline namedBool.M$"
12691269

1270+
//go:noinline
12701271
func namedBoolTest() {
12711272
m := map[int]int{} // ERROR "map\[int\]int{} does not escape"
12721273
var ok namedBool

0 commit comments

Comments
 (0)