]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/go.go-torture/execute/go-1.go
Add Go frontend, libgo library, and Go testsuite.
[thirdparty/gcc.git] / gcc / testsuite / go.go-torture / execute / go-1.go
1 package main
2
3 func send_one(c chan <- int) {
4 c <- 0;
5 }
6
7 func main() {
8 c := make(chan int);
9 go send_one(c);
10 if <-c != 0 { panic(0) }
11 }