mirror of
https://github.com/golang/go
synced 2024-11-02 09:28:34 +00:00
compiler catches out of bounds; work around
R=ken OCL=19943 CL=19943
This commit is contained in:
parent
bbe9bb65c7
commit
3489fe958e
1 changed files with 2 additions and 1 deletions
|
@ -139,7 +139,8 @@ testfdfault()
|
|||
a[i] = 0;
|
||||
}
|
||||
print("should fault\n");
|
||||
a[80] = 0;
|
||||
x := 80;
|
||||
a[x] = 0;
|
||||
print("bad\n");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue