- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestConstFolduint16uint16lsh (0.17 sec)
-
src/cmd/compile/internal/test/constFold_test.go
if r != 32767 { t.Errorf("65535 %s 1 = %d, want 32767", ">>", r) } y = 4294967295 r = x >> y if r != 0 { t.Errorf("65535 %s 4294967295 = %d, want 0", ">>", r) } } func TestConstFolduint16uint16lsh(t *testing.T) { var x, r uint16 var y uint16 x = 0 y = 0 r = x << y if r != 0 { t.Errorf("0 %s 0 = %d, want 0", "<<", r) } y = 1 r = x << y if r != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 23 06:40:04 UTC 2020 - 323K bytes - Viewed (0)