Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCheckConst (0.08 sec)

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

    		t.Errorf("got %v, expected 3.14", C.cplxAlign.x)
    	}
    	if C.cplxAlign.y != 2.17 {
    		t.Errorf("got %v, expected 2.17", C.cplxAlign.y)
    	}
    }
    
    // constants and pointer checking
    
    func testCheckConst(t *testing.T) {
    	// The test is that this compiles successfully.
    	p := C.malloc(C.size_t(unsafe.Sizeof(C.int(0))))
    	defer C.free(p)
    	C.CheckConstFunc(&C.CheckConstStruct{(*C.int)(p)}, C.CheckConstVal)
    }
    
    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