- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for DestructorCallback (0.12 sec)
-
src/runtime/testdata/testprogcgo/destructor.go
package main // extern void registerDestructor(); import "C" import "fmt" func init() { register("DestructorCallback", DestructorCallback) } //export GoDestructorCallback func GoDestructorCallback() { } func DestructorCallback() { C.registerDestructor() fmt.Println("OK")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 21 21:26:05 UTC 2023 - 442 bytes - Viewed (0) -
src/runtime/crash_cgo_test.go
if want := "OK\n"; got != want { t.Fatalf("expected %q, but got:\n%s", want, got) } } func TestDestructorCallback(t *testing.T) { t.Parallel() got := runTestProg(t, "testprogcgo", "DestructorCallback") if want := "OK\n"; got != want { t.Errorf("expected %q, but got:\n%s", want, got) } } func TestDestructorCallbackRace(t *testing.T) { // This test requires building with -race,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 16:44:47 UTC 2024 - 22.2K bytes - Viewed (1)