Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testFallthrough (3.87 sec)

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

    	case 5:
    		ret++
    		fallthrough
    	case 4:
    		ret++
    		fallthrough
    	case 3:
    		ret++
    		fallthrough
    	case 2:
    		ret++
    		fallthrough
    	case 1:
    		ret++
    	}
    	return ret
    }
    
    func testFallthrough(t *testing.T) {
    	for i := 0; i < 6; i++ {
    		if got := fallthrough_ssa(i); got != i {
    			t.Errorf("fallthrough_ssa(i) = %d, wanted %d", got, i)
    		}
    	}
    }
    
    func testSwitch(t *testing.T) {
    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