Update index.go from master testsuite.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Nov 2012 19:48:12 +0000 (19:48 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Nov 2012 19:48:12 +0000 (19:48 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193258 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/go.test/test/index.go

index 447d708..461c2ee 100644 (file)
@@ -21,6 +21,7 @@ import (
        "flag"
        "fmt"
        "os"
+       "runtime"
 )
 
 const prolog = `
@@ -224,6 +225,10 @@ func main() {
                                // the next pass from running.
                                // So run it as a separate check.
                                thisPass = 1
+                       } else if a == "s" && n == "" && (i == "i64big" || i == "i64bigger") && runtime.GOARCH == "amd64" {
+                               // On amd64, these huge numbers do fit in an int, so they are not
+                               // rejected at compile time.
+                               thisPass = 0
                        } else {
                                thisPass = 2
                        }