3 // Copyright 2021 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.
7 // For #45062, miscompilation of open defer of method invocation
12 var x, y, z int = -1, -2, -3
19 defer func() { recover() }()
25 func (t *T) M(x, y, z int) {
26 if x == -1 && y == -2 && z == -3 {
29 println("FAIL: Expected -1, -2, -3, but x, y, z =", x, y, z)
34 type I interface{ M(x, y, z int) }