diff options
| author | Rob Pike <r@golang.org> | 2008-11-24 16:23:49 -0800 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2008-11-24 16:23:49 -0800 |
| commit | 3489fe958e5b03d755c81e8d3d24c8f5feaf7c16 (patch) | |
| tree | ff96db95889ea94087ab239ff960c7f75af95d1d /test/ken/array.go | |
| parent | bbe9bb65c72b4ccfe07fb696472d9e441a2b2bcc (diff) | |
| download | go-3489fe958e5b03d755c81e8d3d24c8f5feaf7c16.tar.xz | |
compiler catches out of bounds; work around
R=ken
OCL=19943
CL=19943
Diffstat (limited to 'test/ken/array.go')
| -rw-r--r-- | test/ken/array.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ken/array.go b/test/ken/array.go index 0dac2a6893..918bb5b6fc 100644 --- a/test/ken/array.go +++ b/test/ken/array.go @@ -139,7 +139,8 @@ testfdfault() a[i] = 0; } print("should fault\n"); - a[80] = 0; + x := 80; + a[x] = 0; print("bad\n"); } |
