From 3489fe958e5b03d755c81e8d3d24c8f5feaf7c16 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Mon, 24 Nov 2008 16:23:49 -0800 Subject: [PATCH] compiler catches out of bounds; work around R=ken OCL=19943 CL=19943 --- test/ken/array.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/ken/array.go b/test/ken/array.go index 0dac2a6893c..918bb5b6fc5 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"); }