- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for panic_callback (0.21 sec)
-
src/runtime/testdata/testprogcgo/panic.go
// We want to test unwinding from a cgo callback. /* void call_callback(void); */ import "C" func init() { register("PanicCallback", PanicCallback) } //export panic_callback func panic_callback() { var i *int *i = 42 } func PanicCallback() { C.call_callback()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 27 20:29:07 UTC 2021 - 312 bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/panic.c
// 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. extern void panic_callback(); void call_callback(void) { panic_callback();
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 27 20:29:07 UTC 2021 - 239 bytes - Viewed (0) -
src/runtime/crash_cgo_test.go
t.Parallel() got := runTestProg(t, "testprogcgo", "PanicCallback") t.Log(got) want := "panic: runtime error: invalid memory address or nil pointer dereference" if !strings.Contains(got, want) { t.Errorf("did not see %q in output", want) } want = "panic_callback" if !strings.Contains(got, want) { t.Errorf("did not see %q in output", want) } want = "PanicCallback" if !strings.Contains(got, want) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 16:44:47 UTC 2024 - 22.2K bytes - Viewed (1)