Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestCheckConst (0.19 sec)

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

    func TestCallbackPanicLoop(t *testing.T)     { testCallbackPanicLoop(t) }
    func TestCallbackStack(t *testing.T)         { testCallbackStack(t) }
    func TestCflags(t *testing.T)                { testCflags(t) }
    func TestCheckConst(t *testing.T)            { testCheckConst(t) }
    func TestConst(t *testing.T)                 { testConst(t) }
    func TestCthread(t *testing.T)               { testCthread(t) }
    func TestEnum(t *testing.T)                  { testEnum(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)
  2. 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