summaryrefslogtreecommitdiffstats
path: root/src/runtime/internal/startlinetest/func_amd64.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/internal/startlinetest/func_amd64.go')
-rw-r--r--src/runtime/internal/startlinetest/func_amd64.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/runtime/internal/startlinetest/func_amd64.go b/src/runtime/internal/startlinetest/func_amd64.go
new file mode 100644
index 0000000..ab7063d
--- /dev/null
+++ b/src/runtime/internal/startlinetest/func_amd64.go
@@ -0,0 +1,13 @@
+// Copyright 2022 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 startlinetest contains helpers for runtime_test.TestStartLineAsm.
+package startlinetest
+
+// Defined in func_amd64.s, this is a trivial assembly function that calls
+// runtime_test.callerStartLine.
+func AsmFunc() int
+
+// Provided by runtime_test.
+var CallerStartLine func(bool) int