From patchwork Tue Nov 6 19:48:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Go testsuite patch committed: Update for 64-bit int Date: Tue, 06 Nov 2012 09:48:14 -0000 From: Ian Taylor X-Patchwork-Id: 197540 Message-Id: To: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com This patch updates the Go testsuite for the 64-bit int type. This is copied from the master copy of the testsuite. Ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline. Ian Index: gcc/testsuite/go.test/test/index.go =================================================================== --- gcc/testsuite/go.test/test/index.go (revision 192508) +++ gcc/testsuite/go.test/test/index.go (working copy) @@ -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 }