diff options
Diffstat (limited to 'test/ken/array.go')
-rw-r--r-- | test/ken/array.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/ken/array.go b/test/ken/array.go index 40209f5da..9412e3502 100644 --- a/test/ken/array.go +++ b/test/ken/array.go @@ -1,9 +1,11 @@ -// $G $D/$F.go && $L $F.$A && ./$A.out +// run // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// Test arrays and slices. + package main func setpd(a []int) { @@ -68,6 +70,9 @@ func testpdpd() { a = a[5:25] res(sumpd(a), 5, 25) + + a = a[30:95] + res(sumpd(a), 35, 100) } // call ptr fixed with ptr fixed |