gcc/testsuite/go.test/test/fixedbugs/issue29870b.go
raw| 1 | // errorcheck |
| 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 | // Make sure we're compiling "_" functions at least enough |
| 8 | // to get to an error which is generated during walk. |
| 9 | |
| 10 | package main |
| 11 | |
| 12 | func _() { |
| 13 | x := 7 // ERROR ".*x.* declared but not used" |
| 14 | } |