summaryrefslogtreecommitdiffstats
path: root/llgo/test/execution/arrays/slice.go
blob: e2880906d92c9bcdd59fdcd78e3421c1f7d55751 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: llgo -o %t %s
// RUN: %t 2>&1 | FileCheck %s

// CHECK: 10
// CHECK-NEXT: 9

package main

func main() {
	var a [10]int
	b := a[1:]
	println(len(a))
	println(len(b))
}
OpenPOWER on IntegriCloud