Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestComplexAlign (0.17 sec)

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

    	_ = array[C.KILO:C.KILO:C.KILO] // no type error
    }
    
    // set in cgo_thread_lock.go init
    var testThreadLockFunc = func(*testing.T) {}
    
    // complex alignment
    
    func TestComplexAlign(t *testing.T) {
    	if C.cplxAlign.x != 3.14 {
    		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)
    	}
    }
    
    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