From: Rob Pike Date: Tue, 25 Nov 2008 00:23:49 +0000 (-0800) Subject: compiler catches out of bounds; work around X-Git-Tag: weekly.2009-11-06~2612 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3489fe958e5b03d755c81e8d3d24c8f5feaf7c16;p=gostls13.git compiler catches out of bounds; work around R=ken OCL=19943 CL=19943 --- 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"); }