1
0
mirror of https://github.com/golang/go synced 2024-11-25 04:07:55 -07:00

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");
}