mirror of https://github.com/golang/go.git
20 lines
308 B
Go
20 lines
308 B
Go
// Copyright 2021 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.
|
|
|
|
package a
|
|
|
|
type A interface {
|
|
M()
|
|
}
|
|
|
|
//go:noinline
|
|
func TheFuncWithArgA(a A) {
|
|
a.M()
|
|
}
|
|
|
|
type ImplA struct{}
|
|
|
|
//go:noinline
|
|
func (A *ImplA) M() {}
|