github.com/llvm-mirror/llgo@v0.0.0-20190322182713-bf6f0a60fce1/test/execution/slices/index.go (about)

     1  // RUN: llgo -o %t %s
     2  // RUN: %t 2>&1 | FileCheck %s
     3  
     4  // CHECK: 0
     5  
     6  package main
     7  
     8  func blah() []int {
     9  	return make([]int, 1)
    10  }
    11  
    12  func main() {
    13  	println(blah()[0])
    14  }