Commit efa1fe23 by Ian Lance Taylor

Update index.go from master testsuite.

From-SVN: r193258
parent 32387f4b
...@@ -21,6 +21,7 @@ import ( ...@@ -21,6 +21,7 @@ import (
"flag" "flag"
"fmt" "fmt"
"os" "os"
"runtime"
) )
const prolog = ` const prolog = `
...@@ -224,6 +225,10 @@ func main() { ...@@ -224,6 +225,10 @@ func main() {
// the next pass from running. // the next pass from running.
// So run it as a separate check. // So run it as a separate check.
thisPass = 1 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 { } else {
thisPass = 2 thisPass = 2
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment