- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestZeroArgCallback (0.32 sec)
-
src/cmd/cgo/internal/test/callback.go
nestedCall(func() { panic("callback panic") }) panic("nestedCall returned") } // Callback with zero arguments used to make the stack misaligned, // which broke the garbage collector and other things. func testZeroArgCallback(t *testing.T) { defer func() { s := recover() if s != nil { t.Fatal("panic during callback:", s) } }() C.callGoFoo() } //export goFoo func goFoo() { x := 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 111.5K bytes - Viewed (0)