...

Source file src/golang.org/x/tools/go/ssa/interp/testdata/fixedbugs/issue52342.go

Documentation: golang.org/x/tools/go/ssa/interp/testdata/fixedbugs

     1  package main
     2  
     3  func main() {
     4  	var d byte
     5  
     6  	d = 1
     7  	d <<= 256
     8  	if d != 0 {
     9  		panic(d)
    10  	}
    11  
    12  	d = 1
    13  	d >>= 256
    14  	if d != 0 {
    15  		panic(d)
    16  	}
    17  }
    18  

View as plain text