aboutsummaryrefslogtreecommitdiff
path: root/test/fixedbugs/issue29870b.go
blob: 2d5f638530cb46d88c3a110598dc24185bcbed15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// errorcheck

// Copyright 2019 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.

// Make sure we're compiling "_" functions at least enough
// to get to an error which is generated during walk.

package main

func _() {
	x := 7 // ERROR "x declared but not used"
}