8g: out of register bug fix

Fixes #868.

R=ken2
CC=golang-dev
https://golang.org/cl/1695049
This commit is contained in:
Russ Cox 2010-06-30 20:45:50 -07:00
parent ed39c764b8
commit 7c9ed7946c
3 changed files with 32 additions and 1 deletions

11
test/fixedbugs/bug287.go Normal file
View file

@ -0,0 +1,11 @@
// errchk $G $D/$F.go
// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Used to die dividing by zero; issue 879.
package main
var mult [3][...]byte = [3][5]byte{} // ERROR "\.\.\."