github.com/llvm-mirror/llgo@v0.0.0-20190322182713-bf6f0a60fce1/test/execution/slices/literal.go (about) 1 // RUN: llgo -o %t %s 2 // RUN: %t 2>&1 | FileCheck %s 3 4 // CHECK: 1 5 // CHECK-NEXT: 2 6 // CHECK-NEXT: 3 7 8 package main 9 10 func main() { 11 x := []int{1, 2, 3} 12 for i := 0; i < len(x); i++ { 13 println(x[i]) 14 } 15 }