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 7package unused 8 9import "fmt" 10 11func _() { 12 fmt.Errorf("") // ERROR "result of fmt.Errorf call not used" 13} 14