1
0
mirror of https://github.com/golang/go synced 2024-09-24 17:20:12 -06:00
go/test/fixedbugs/issue9862.go
Russ Cox 6f80e5edf4 cmd/link: reject data size > 2 GB
We can't address more than this on amd64 anyway.

Fixes #9862.

Change-Id: Ifb1abae558e2e1ee2dc953a76995f3f08c60b1df
Reviewed-on: https://go-review.googlesource.com/11715
Reviewed-by: Austin Clements <austin@google.com>
2015-06-30 19:40:39 +00:00

16 lines
266 B
Go

// skip
// Copyright 2015 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.
package main
var a [1<<31 - 1024]byte
func main() {
if a[0] != 0 {
panic("bad array")
}
}