1
0
mirror of https://github.com/golang/go synced 2024-11-22 13:45:00 -07:00

test: re-enable issue4348.go.

The test array is too large to fit a stack frame
but can be a global.

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/7127059
This commit is contained in:
Rémy Oudompheng 2013-01-18 22:54:27 +01:00
parent c0d9bf5650
commit 09cb91eddc

View File

@ -1,13 +1,10 @@
// skip
// NOTE: this test is now skipped because the relevant code
// is rejected after fixing issue 4666.
// compile
// Copyright 2012 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.
// Issue 4238. After switch to 64-bit ints the compiler generates
// Issue 4348. After switch to 64-bit ints the compiler generates
// illegal instructions when using large array bounds or indexes.
package main
@ -20,8 +17,9 @@ func A() int {
return a[LARGE]
}
var b [LARGE]int
func B(i int) int {
var b [LARGE]int
return b[i]
}