Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / go.test / test / fixedbugs / bug288.go
blob0105159d138d0aedb1d3c79f56a5923e4a8fc791
1 // $G $D/$F.go
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.
7 // Used to run out of registers on 8g. Issue 868.
9 package main
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