]> Cypherpunks.ru repositories - gostls13.git/blob - test/fixedbugs/issue30430.go
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / test / fixedbugs / issue30430.go
1 // compile
2
3 // Copyright 2019 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 // Issue 30430: isGoConst returned true for non-const variables,
8 // resulting in ICE.
9
10 package p
11
12 func f() {
13         var s string
14         _ = map[string]string{s: ""}
15 }
16
17 const s = ""