summaryrefslogtreecommitdiffstats
path: root/llgo/test/execution/slices/index.go
blob: 20d213e1a4ee7c93584d282be80ba0099ea36552 (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: 0

package main

func blah() []int {
	return make([]int, 1)
}

func main() {
	println(blah()[0])
}
OpenPOWER on IntegriCloud