Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test14838 (0.12 sec)

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

    // issue 13930
    // Test that cgo's multiple-value special form for
    // C function calls works in variable declaration statements.
    
    var _, _ = C.abs(0)
    
    // issue 14838
    
    func test14838(t *testing.T) {
    	data := []byte{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
    	cData := C.CBytes(data)
    	defer C.free(cData)
    
    	if C.check_cbytes((*C.char)(cData), C.size_t(len(data))) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
Back to top