Files
clang-p2996/llgo/test/execution/slices/index.go
Peter Collingbourne ad9841e8ac Initial commit of llgo.
llvm-svn: 222857
2014-11-27 00:06:42 +00:00

15 lines
163 B
Go

// 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])
}