2012-02-16 21:50:37 -07:00
|
|
|
// compile
|
2012-02-10 20:32:02 -07:00
|
|
|
|
2016-04-10 15:32:26 -06:00
|
|
|
// Copyright 2012 The Go Authors. All rights reserved.
|
2012-02-10 20:32:02 -07:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
// Issue 2588. Used to trigger internal compiler error on 8g,
|
|
|
|
// because the compiler tried to registerize the int64 being
|
|
|
|
// used as a memory operand of a int64->float64 move.
|
|
|
|
|
|
|
|
package p
|
|
|
|
|
|
|
|
func f1(a int64) {
|
|
|
|
f2(float64(a), float64(a))
|
|
|
|
}
|
|
|
|
|
|
|
|
func f2(a,b float64) {
|
|
|
|
}
|
|
|
|
|