]> Cypherpunks repositories - gostls13.git/commitdiff
test: re-enable issue4348.go.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Fri, 18 Jan 2013 21:54:27 +0000 (22:54 +0100)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Fri, 18 Jan 2013 21:54:27 +0000 (22:54 +0100)
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

test/fixedbugs/issue4348.go

index e1d172e9d2fd853251aeaa34a9a77fdae64a145f..3dac8f7685c11969ae727cf7ceedbe42afd94695 100644 (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]
 }