Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for boolInt32 (0.17 sec)

  1. test/fixedbugs/issue64715.go

    // license that can be found in the LICENSE file.
    
    package main
    
    func boolInt32(b bool) int32 {
    	if b {
    		return 1
    	}
    
    	return 0
    }
    
    func f(left uint16, right int32) (r uint16) {
    	return left >> right
    }
    
    var n = uint16(65535)
    
    func main() {
    	println(f(n, boolInt32(int64(n^n) > 1)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 19:35:21 UTC 2023
    - 401 bytes
    - Viewed (0)
Back to top