diff options
Diffstat (limited to 'src/runtime/testdata')
| -rw-r--r-- | src/runtime/testdata/testprog/crash.go | 6 | ||||
| -rw-r--r-- | src/runtime/testdata/testprogcgo/pprof_callback.go | 2 | ||||
| -rw-r--r-- | src/runtime/testdata/testwinlib/main.go | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/src/runtime/testdata/testprog/crash.go b/src/runtime/testdata/testprog/crash.go index a2294ba149..38c8f6a2fa 100644 --- a/src/runtime/testdata/testprog/crash.go +++ b/src/runtime/testdata/testprog/crash.go @@ -122,13 +122,13 @@ func NilPanic() { panic(nil) } -type exampleCircleStartError struct {} +type exampleCircleStartError struct{} func (e exampleCircleStartError) Error() string { panic(exampleCircleEndError{}) } -type exampleCircleEndError struct {} +type exampleCircleEndError struct{} func (e exampleCircleEndError) Error() string { panic(exampleCircleStartError{}) @@ -136,4 +136,4 @@ func (e exampleCircleEndError) Error() string { func CircularPanic() { panic(exampleCircleStartError{}) -}
\ No newline at end of file +} diff --git a/src/runtime/testdata/testprogcgo/pprof_callback.go b/src/runtime/testdata/testprogcgo/pprof_callback.go index e34564395e..fd87eb87dd 100644 --- a/src/runtime/testdata/testprogcgo/pprof_callback.go +++ b/src/runtime/testdata/testprogcgo/pprof_callback.go @@ -27,8 +27,8 @@ import "C" import ( "fmt" "os" - "runtime/pprof" "runtime" + "runtime/pprof" "time" ) 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 |
