1
0
mirror of https://github.com/golang/go synced 2024-11-05 20:16:13 -07:00
go/test/fixedbugs/issue7794.go
Shenghou Ma 32dffef098 cmd/gc: fix segfault in isgoconst.
Variables declared with 'var' have no sym->def.

Fixes #7794.

LGTM=rsc
R=golang-codereviews, bradfitz, rsc
CC=golang-codereviews
https://golang.org/cl/88360043
2014-04-16 23:12:06 -04:00

13 lines
237 B
Go

// compile
// Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
func main() {
var a [10]int
const ca = len(a)
}