Source file test/fixedbugs/bug288.go

     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  }
    19  

View as plain text