Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testArithRightShiftConstOverflow (0.48 sec)

  1. src/cmd/compile/internal/test/testdata/arith_test.go

    //go:noinline
    func rsh64x64ConstOverflow16(x int16) int64 {
    	return int64(x) >> 17
    }
    
    //go:noinline
    func rsh64x64ConstOverflow32(x int32) int64 {
    	return int64(x) >> 33
    }
    
    func testArithRightShiftConstOverflow(t *testing.T) {
    	allSet := int64(-1)
    	if got, want := rsh64x64ConstOverflow8(0x7f), int64(0); got != want {
    		t.Errorf("rsh64x64ConstOverflow8 failed: got %v, want %v", got, want)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 19:30:59 UTC 2023
    - 43.5K bytes
    - Viewed (0)
Back to top