github.com/xushiwei/go@v0.0.0-20130601165731-2b9d83f45bc9/test/fixedbugs/bug288.go (about) 1 // compile 2 3 // Copyright 2010 The Go Authors. All rights reserved. 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file. 6 7 // Used to run out of registers on 8g. Issue 868. 8 9 package main 10 11 func main() { 12 var r uint32 13 var buf [4]byte 14 a := buf[0:4] 15 r = (((((uint32(a[3]) << 8) | uint32(a[2])) << 8) | 16 uint32(a[1])) << 8) | uint32(a[0]) 17 _ = r 18 }