aboutsummaryrefslogtreecommitdiffhomepage
path: root/compiler/testdata/basic.go
blob: 51a4ef7c1afde7f75b588e3d4622d0a1aad3dfac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package main

func add(x, y int) int {
	return x + y
}

func stringEqual(s string) bool {
	return s == "s"
}

func closeChan(ch chan int) {
	close(ch)
}