]> Cypherpunks.ru repositories - gostls13.git/blob - test/fixedbugs/issue15961.go
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / test / fixedbugs / issue15961.go
1 // compile
2
3 // Copyright 2016 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
6
7 package y
8
9 type symSet []int
10
11 //go:noinline
12 func (s symSet) len() (r int) {
13         return 0
14 }
15
16 func f(m map[int]symSet) {
17         var symSet []int
18         for _, x := range symSet {
19                 m[x] = nil
20         }
21 }