test: remove semiocolons.

The ken directory is untouched so we have some examples with explicit semis.

R=gri
CC=golang-dev
https://golang.org/cl/2157041
This commit is contained in:
Rob Pike 2010-09-04 10:36:13 +10:00
parent cd8f4cd206
commit 4f61fc96b2
88 changed files with 2512 additions and 2516 deletions

View file

@ -10,10 +10,10 @@ package main
import "unsafe"
var dummy [512<<20]byte; // give us a big address space
var dummy [512<<20]byte // give us a big address space
type T struct {
x [256<<20] byte;
i int;
x [256<<20] byte
i int
}
func main() {
@ -23,13 +23,13 @@ func main() {
// at the address that might be accidentally
// dereferenced below.
if uintptr(unsafe.Pointer(&dummy)) > 256<<20 {
panic("dummy too far out");
panic("dummy too far out")
}
// The problem here is that indexing into t with a large
// enough index can jump out of the unmapped section
// at the beginning of memory and into valid memory.
// We require the pointer dereference to check.
var t *T;
println(t.i); // should crash
var t *T
println(t.i) // should crash
}