Files
go-legacy-win7/test/codegen/issue59297.go

18 lines
297 B
Go
Raw Normal View History

2025-02-14 12:42:07 +07:00
// asmcheck
2024-09-21 23:49:08 +10:00
// Copyright 2023 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
2025-02-14 12:42:07 +07:00
package codegen
2024-09-21 23:49:08 +10:00
2025-02-14 12:42:07 +07:00
func f(x, y int, p *int) {
// amd64:`MOVQ\sAX, BX`
h(8, x)
*p = y
}
2024-09-21 23:49:08 +10:00
2025-02-14 12:42:07 +07:00
//go:noinline
func h(a, b int) {
2024-09-21 23:49:08 +10:00
}