summaryrefslogtreecommitdiffstats
path: root/llgo/test/execution/literals/func.go
blob: b8dbef340fad02c4d2e43ba792f53176a72514f7 (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: true
// CHECK-NEXT: false

package main

func main() {
	f := func(x bool) {
		println(x)
	}
	f(true)
	f(false)
}
OpenPOWER on IntegriCloud