compiler catches out of bounds; work around

R=ken
OCL=19943
CL=19943
This commit is contained in:
Rob Pike 2008-11-24 16:23:49 -08:00
parent bbe9bb65c7
commit 3489fe958e

View file

@ -139,7 +139,8 @@ testfdfault()
a[i] = 0;
}
print("should fault\n");
a[80] = 0;
x := 80;
a[x] = 0;
print("bad\n");
}