Russ Cox | 2b1c9b4 | 2012-02-16 23:49:30 -0500 | [diff] [blame] | 1 | // errorcheck |
Robert Griesemer | 0748bf37 | 2008-07-30 16:09:29 -0700 | [diff] [blame] | 2 | |
| 3 | // Copyright 2009 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 | |
Russ Cox | f4e76d8 | 2011-01-31 18:36:28 -0500 | [diff] [blame] | 7 | package main |
| 8 | |
Ian Lance Taylor | 4cb660a | 2011-03-25 15:28:53 -0700 | [diff] [blame] | 9 | const x x = 2 // ERROR "loop|type" |
Robert Griesemer | 0748bf37 | 2008-07-30 16:09:29 -0700 | [diff] [blame] | 10 | |
| 11 | /* |
| 12 | bug081.go:3: first constant must evaluate an expression |
| 13 | Bus error |
| 14 | */ |