aboutsummaryrefslogtreecommitdiff
path: root/misc/cgo/testshared/testdata/issue47837/a/a.go
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cgo/testshared/testdata/issue47837/a/a.go')
-rw-r--r--misc/cgo/testshared/testdata/issue47837/a/a.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/misc/cgo/testshared/testdata/issue47837/a/a.go b/misc/cgo/testshared/testdata/issue47837/a/a.go
new file mode 100644
index 0000000000..68588eda2f
--- /dev/null
+++ b/misc/cgo/testshared/testdata/issue47837/a/a.go
@@ -0,0 +1,19 @@
+// 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() {}