2014-07-19 02:12:42 -06:00
|
|
|
// errorcheck
|
|
|
|
|
2016-04-10 15:32:26 -06:00
|
|
|
// Copyright 2014 The Go Authors. All rights reserved.
|
2014-07-19 02:12:42 -06:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
// The gccgo compiler did not reliably report mismatches between the
|
|
|
|
// number of function results and the number of expected results.
|
|
|
|
|
|
|
|
package p
|
|
|
|
|
|
|
|
func G() (int, int, int) {
|
|
|
|
return 0, 0, 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func F() {
|
|
|
|
a, b := G() // ERROR "mismatch"
|
|
|
|
a, b = G() // ERROR "mismatch"
|
|
|
|
_, _ = a, b
|
|
|
|
}
|
|
|
|
|
|
|
|
func H() (int, int) {
|
|
|
|
return G() // ERROR "too many|mismatch"
|
|
|
|
}
|