diff options
author | Russ Cox <rsc@golang.org> | 2011-07-28 12:32:43 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2011-07-28 12:32:43 -0400 |
commit | acb02ebc30bef25318505108d801d073508c0c6e (patch) | |
tree | e0294fa347adfedf6d4ce7879b6c4eaab2c4c8b9 | |
parent | 2f8190a8f87f22c3b26d13da8854da1f7b62cdca (diff) | |
download | go-acb02ebc30bef25318505108d801d073508c0c6e.tar.gz go-acb02ebc30bef25318505108d801d073508c0c6e.zip |
gc: another width test
R=ken2
CC=golang-dev
https://golang.org/cl/4808057
-rw-r--r-- | test/fixedbugs/bug361.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/fixedbugs/bug361.go b/test/fixedbugs/bug361.go new file mode 100644 index 0000000000..d2a64bcef4 --- /dev/null +++ b/test/fixedbugs/bug361.go @@ -0,0 +1,15 @@ +// $G $D/$F.go || echo BUG: bug360 + +// Copyright 2011 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 1908 +// unreasonable width used to be internal fatal error + +package test + +func main() { + buf := [1<<30]byte{} + _ = buf[:] +} |