- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestReturnAfterGrow (0.22 sec)
-
src/cmd/cgo/internal/test/cgo_test.go
func TestNaming(t *testing.T) { testNaming(t) } func TestPanicFromC(t *testing.T) { testPanicFromC(t) } func TestPrintf(t *testing.T) { testPrintf(t) } func TestReturnAfterGrow(t *testing.T) { testReturnAfterGrow(t) } func TestReturnAfterGrowFromGo(t *testing.T) { testReturnAfterGrowFromGo(t) } func TestSetEnv(t *testing.T) { testSetEnv(t) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 17 21:53:11 UTC 2023 - 6.4K bytes - Viewed (0) -
src/cmd/cgo/internal/test/callback.go
if r.(string) != "panic from C" { t.Fatal("wrong panic:", r) } }() C.callPanic() } // Test that C code can return a value if it calls a Go function that // causes a stack copy. func testReturnAfterGrow(t *testing.T) { // Use a new goroutine so that we get a small stack. c := make(chan int) go func() { c <- int(C.returnAfterGrow()) }() if got, want := <-c, 123456; got != want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 111.5K bytes - Viewed (0)