summaryrefslogtreecommitdiff
path: root/gcc/testsuite/go.go-torture/execute/go-1.go
blob: 7d9dbd469a98380a0c627a0c52d104750b36acbd (plain)
1
2
3
4
5
6
7
8
9
10
11
package main

func send_one(c chan <- int) {
  c <- 0;
}

func main() {
  c := make(chan int);
  go send_one(c);
  if <-c != 0 { panic(0) }
}