summaryrefslogtreecommitdiff
path: root/gcc/testsuite/go.go-torture/execute/chan-1.go
blob: c3d4ddb1114c44a4f5507d904fa78eb4130a881f (plain)
1
2
3
4
5
6
7
package main

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