aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/testdata/testwinlib/main.go
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2022-06-08 10:46:42 -0400
committerGopher Robot <gobot@golang.org>2022-06-08 15:44:05 +0000
commit3426b7201da8140bb0fb433facd9e1fd3f267dfb (patch)
tree0dc130bd76935c5b2d0c5630ae47c5b8840f423a /src/runtime/testdata/testwinlib/main.go
parentf330a3a987aa980d6c1adfb4ed509b461d5c13cf (diff)
downloadgo-3426b7201da8140bb0fb433facd9e1fd3f267dfb.tar.xz
runtime: gofmt
libfuzzerHookStrCmp is manually reformatted into a proper go doc list. We don't always format testdata, but these test programs are standard Go programs that can be formatted. Change-Id: I4dde398bca225ae8c72e787e4d43fd0ccfd0a90b Reviewed-on: https://go-review.googlesource.com/c/go/+/411114 Auto-Submit: Michael Pratt <mpratt@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Michael Pratt <mpratt@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/runtime/testdata/testwinlib/main.go')
-rw-r--r--src/runtime/testdata/testwinlib/main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/testdata/testwinlib/main.go b/src/runtime/testdata/testwinlib/main.go
index 025ef913e5..407331bb83 100644
--- a/src/runtime/testdata/testwinlib/main.go
+++ b/src/runtime/testdata/testwinlib/main.go
@@ -11,6 +11,7 @@ package main
import "C"
// CallMeBack call backs C code.
+//
//export CallMeBack
func CallMeBack(callback C.callmeBackFunc) {
C.bridgeCallback(callback)
@@ -21,6 +22,7 @@ func CallMeBack(callback C.callmeBackFunc) {
// validate that it does not crash the program before another handler could take an action.
// The idea here is to reproduce what happens when you attach a debugger to a running program.
// It also simulate the behavior of the .Net debugger, which register its exception/continue handlers lazily.
+//
//export Dummy
func Dummy() int {
return 42