libgo/go/cmd/vet/testdata/unused/unused.go
raw| 1 | // Copyright 2015 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | // This file contains tests for the unusedresult checker. |
| 6 | |
| 7 | package unused |
| 8 | |
| 9 | import "fmt" |
| 10 | |
| 11 | func _() { |
| 12 | fmt.Errorf("") // ERROR "result of fmt.Errorf call not used" |
| 13 | } |