Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for fallthrough_ssa (0.11 sec)

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

    		ret += 1
    	}
    	return ret
    }
    
    func fallthrough_ssa(a int) int {
    	ret := 0
    	switch a {
    	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 {
    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