Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestConstFolduint64add (0.36 sec)

  1. src/cmd/compile/internal/test/constFold_test.go

    // run
    // Code generated by gen/constFoldGen.go. DO NOT EDIT.
    
    package test
    
    import "testing"
    
    func TestConstFolduint64add(t *testing.T) {
    	var x, y, r uint64
    	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 != 1 {
    		t.Errorf("0 %s 1 = %d, want 1", "+", r)
    	}
    	y = 4294967296
    	r = x + y
    	if r != 4294967296 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 323K bytes
    - Viewed (0)
Back to top