Commit 3489fe95 authored by Rob Pike's avatar Rob Pike

compiler catches out of bounds; work around

R=ken
OCL=19943
CL=19943
parent bbe9bb65
...@@ -139,7 +139,8 @@ testfdfault() ...@@ -139,7 +139,8 @@ testfdfault()
a[i] = 0; a[i] = 0;
} }
print("should fault\n"); print("should fault\n");
a[80] = 0; x := 80;
a[x] = 0;
print("bad\n"); print("bad\n");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment