Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / go.test / test / ken / array.go
index 40209f5..9412e35 100644 (file)
@@ -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