blob: 4a505ca19b0c531742561d96536e712dd6693798 [file] [log] [blame]
Peter Collingbournead9841e2014-11-27 00:06:42 +00001// RUN: llgo -o %t %s
2// RUN: %t 2>&1 | FileCheck %s
3
4// CHECK: false
5
6package main
7
8func main() {
9 a := false
10 f := func() {
11 make(chan *bool, 1) <- &a
12 }
13 f()
14 println(a)
15}