Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testPhiControl (0.16 sec)

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

    // phi control values.
    func nor_ssa(a, b bool) bool {
    	var c bool
    	if a {
    		c = true
    	}
    	if b {
    		c = true
    	}
    	if c {
    		return false
    	}
    	return true
    }
    
    func testPhiControl(t *testing.T) {
    	tests := [...][3]bool{ // a, b, want
    		{false, false, true},
    		{true, false, false},
    		{false, true, false},
    		{true, true, false},
    	}
    	for _, test := range tests {
    		a, b := test[0], test[1]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 2.3K bytes
    - Viewed (0)
Back to top