mirror of
https://github.com/golang/go
synced 2024-11-25 06:07:58 -07:00
compiler catches out of bounds; work around
R=ken OCL=19943 CL=19943
This commit is contained in:
parent
bbe9bb65c7
commit
3489fe958e
@ -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 New Issue
Block a user