- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestCheckConst (0.45 sec)
-
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)