github.com/llvm-mirror/llgo@v0.0.0-20190322182713-bf6f0a60fce1/test/execution/literals/func.go (about) 1 // RUN: llgo -o %t %s 2 // RUN: %t 2>&1 | FileCheck %s 3 4 // CHECK: true 5 // CHECK-NEXT: false 6 7 package main 8 9 func main() { 10 f := func(x bool) { 11 println(x) 12 } 13 f(true) 14 f(false) 15 }