Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testReturnAfterGrowFromGo (0.2 sec)

  1. src/cmd/cgo/internal/test/cgo_test.go

    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) }
    func TestThreadLock(t *testing.T)            { testThreadLockFunc(t) }
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed May 17 21:53:11 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/callback.go

    	}()
    	if got, want := <-c, 123456; got != want {
    		t.Errorf("got %d want %d", got, want)
    	}
    }
    
    // Test that we can return a value from Go->C->Go if the Go code
    // causes a stack copy.
    func testReturnAfterGrowFromGo(t *testing.T) {
    	// Use a new goroutine so that we get a small stack.
    	c := make(chan int)
    	go func() {
    		c <- int(C.returnAfterGrowFromGo())
    	}()
    	if got, want := <-c, 129*128/2; got != want {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 111.5K bytes
    - Viewed (0)
Back to top