Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for switchBreak (0.11 sec)

  1. test/inline.go

    	foo := func() int { // ERROR "can inline s1.func1" "func literal does not escape"
    		return x
    	}
    	x = x + 1
    	return foo() // ERROR "inlining call to s1.func1"
    }
    
    func switchBreak(x, y int) int { // ERROR "can inline switchBreak"
    	var n int
    	switch x {
    	case 0:
    		n = 1
    	Done:
    		switch y {
    		case 0:
    			n += 10
    			break Done
    		}
    		n = 2
    	}
    	return n
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  2. test/newinline.go

    	foo := func() int { // ERROR "can inline s1.func1" "func literal does not escape"
    		return x
    	}
    	x = x + 1
    	return foo() // ERROR "inlining call to s1.func1"
    }
    
    func switchBreak(x, y int) int { // ERROR "can inline switchBreak"
    	var n int
    	switch x {
    	case 0:
    		n = 1
    	Done:
    		switch y {
    		case 0:
    			n += 10
    			break Done
    		}
    		n = 2
    	}
    	return n
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 11.2K bytes
    - Viewed (0)
Back to top