summaryrefslogtreecommitdiffstats
path: root/llgo/test/execution/closures/issue176.go
blob: 4a505ca19b0c531742561d96536e712dd6693798 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: llgo -o %t %s
// RUN: %t 2>&1 | FileCheck %s

// CHECK: false

package main

func main() {
	a := false
	f := func() {
		make(chan *bool, 1) <- &a
	}
	f()
	println(a)
}
OpenPOWER on IntegriCloud